Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
d0c860b8fe
commit
b0e58bb513
@@ -35,13 +35,23 @@ import {
|
||||
ArrowLeft,
|
||||
Calculator,
|
||||
ChevronRight,
|
||||
Download,
|
||||
Loader2,
|
||||
Plus,
|
||||
RefreshCw,
|
||||
Trash2,
|
||||
Upload,
|
||||
UserPlus,
|
||||
Users,
|
||||
} from "lucide-react";
|
||||
import { toast } from "sonner";
|
||||
import {
|
||||
BUCKETS,
|
||||
BUCKET_LABEL,
|
||||
computeBucketBalances,
|
||||
num,
|
||||
withRunningBalance,
|
||||
} from "@/lib/ledger";
|
||||
|
||||
const TXN_TYPES = [
|
||||
{ value: "assessment", label: "Assessment" },
|
||||
@@ -375,7 +385,7 @@ export function CollectionDetail({
|
||||
|
||||
// Save header fields (debounced manual save)
|
||||
const saveHeader = async (patch: Record<string, any>) => {
|
||||
const { error } = await supabase.from("collections").update(patch).eq("id", collection.id);
|
||||
const { error } = await (supabase.from("collections") as any).update(patch).eq("id", collection.id);
|
||||
if (error) toast.error("Could not save", { description: error.message });
|
||||
else onChange();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user