penambahan menu approval per po per proses
This commit is contained in:
@@ -504,6 +504,21 @@
|
||||
};
|
||||
currentEditingId = row.id;
|
||||
await addToPo(project);
|
||||
} else {
|
||||
// uncheck
|
||||
const { data, error } =
|
||||
await supabase
|
||||
.from("projects")
|
||||
.update({
|
||||
add_to_po: false,
|
||||
})
|
||||
.eq("id", row.id);
|
||||
if (error) {
|
||||
console.error(
|
||||
"Error updating project:",
|
||||
error,
|
||||
);
|
||||
}
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user