Skip to content

Commit cd44516

Browse files
committed
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
1 parent 73552e5 commit cd44516

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/routes/(console)/organization-[organization]/billing

src/routes/(console)/organization-[organization]/billing/+page.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
import type { PageData } from './$types';
2626
2727
export let data: PageData;
28-
let organization = data.organization;
28+
29+
// Reactive statement to update organization when data changes
30+
$: organization = data.organization;
2931
3032
// why are these reactive?
3133
$: defaultPaymentMethod = data?.paymentMethods?.paymentMethods?.find(

0 commit comments

Comments
 (0)