fix: faker.

This commit is contained in:
Darshan
2025-09-05 13:33:17 +05:30
parent 01e11f5e44
commit fcac5fd2b2
3 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -20,7 +20,7 @@
import { isCloud } from '$lib/system';
import { goto } from '$app/navigation';
import { base } from '$app/paths';
import { currentPlan, newOrgModal } from '$lib/stores/organization';
import { currentPlan, newOrgModal, organization } from '$lib/stores/organization';
import { Click, trackEvent } from '$lib/actions/analytics';
import { type Models, Query } from '@appwrite.io/console';
import { sdk } from '$lib/stores/sdk';
@@ -229,7 +229,8 @@
}
let badgeType: 'success' | undefined;
$: badgeType = $currentPlan && $currentPlan.name !== BillingPlan.FREE ? 'success' : undefined;
$: badgeType =
$organization && $organization.billingPlan !== BillingPlan.FREE ? 'success' : undefined;
</script>
<svelte:window on:resize={onResize} />
+3 -1
View File
@@ -55,7 +55,9 @@ export function generateFakeRecords(
} {
if (count <= 0) return { ids: [], rows: [] };
const filteredColumns = columns.filter((col) => col.type !== 'relationship');
const filteredColumns = columns.filter(
(col) => col.type !== 'relationship' && col.status === 'available'
);
const ids: string[] = [];
const rows: Models.Row[] = [];
@@ -34,7 +34,7 @@
function isCloudOrg(
data: Partial<Models.TeamList<Models.Preferences>> | Organization
): data is Organization {
return isCloud && 'billingPlan' in data ? true : false;
return isCloud && 'billingPlan' in data;
}
function createOrg() {