Skip to content

Commit fcac5fd

Browse files
committed
fix: faker.
1 parent 01e11f5 commit fcac5fd

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/lib/components/breadcrumbs.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { isCloud } from '$lib/system';
2121
import { goto } from '$app/navigation';
2222
import { base } from '$app/paths';
23-
import { currentPlan, newOrgModal } from '$lib/stores/organization';
23+
import { currentPlan, newOrgModal, organization } from '$lib/stores/organization';
2424
import { Click, trackEvent } from '$lib/actions/analytics';
2525
import { type Models, Query } from '@appwrite.io/console';
2626
import { sdk } from '$lib/stores/sdk';
@@ -229,7 +229,8 @@
229229
}
230230
231231
let badgeType: 'success' | undefined;
232-
$: badgeType = $currentPlan && $currentPlan.name !== BillingPlan.FREE ? 'success' : undefined;
232+
$: badgeType =
233+
$organization && $organization.billingPlan !== BillingPlan.FREE ? 'success' : undefined;
233234
</script>
234235

235236
<svelte:window on:resize={onResize} />

src/lib/helpers/faker.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export function generateFakeRecords(
5555
} {
5656
if (count <= 0) return { ids: [], rows: [] };
5757

58-
const filteredColumns = columns.filter((col) => col.type !== 'relationship');
58+
const filteredColumns = columns.filter(
59+
(col) => col.type !== 'relationship' && col.status === 'available'
60+
);
5961

6062
const ids: string[] = [];
6163
const rows: Models.Row[] = [];

src/routes/(console)/account/organizations/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
function isCloudOrg(
3535
data: Partial<Models.TeamList<Models.Preferences>> | Organization
3636
): data is Organization {
37-
return isCloud && 'billingPlan' in data ? true : false;
37+
return isCloud && 'billingPlan' in data;
3838
}
3939
4040
function createOrg() {

0 commit comments

Comments
 (0)