Fix: refresh when organization dependency change

before: Invalidating organization was not refreshing the page because it kept local copy of organization

now: Invalidating organization correctly refreshes the page
This commit is contained in:
Damodar Lohani
2025-11-12 01:28:56 +00:00
parent 73552e5943
commit cd445161e0
@@ -25,7 +25,9 @@
import type { PageData } from './$types';
export let data: PageData;
let organization = data.organization;
// Reactive statement to update organization when data changes
$: organization = data.organization;
// why are these reactive?
$: defaultPaymentMethod = data?.paymentMethods?.paymentMethods?.find(