Skip to content

Commit 9e5877d

Browse files
Merge pull request #2588 from appwrite/fix-refresh-alert
Fix: refresh when organization dependency change
2 parents 73552e5 + cd44516 commit 9e5877d

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)