Skip to content

Commit e2f2c6e

Browse files
committed
fixes
1 parent 8badce9 commit e2f2c6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
} from '@appwrite.io/pink-icons-svelte';
3838
import { getPlatformInfo } from '$lib/helpers/platform';
3939
import CreateProjectCloud from './createProjectCloud.svelte';
40-
import { regions as regionsStore } from '$lib/stores/organization';
40+
import { currentPlan, regions as regionsStore } from '$lib/stores/organization';
4141
import SelectProjectCloud from '$lib/components/billing/alerts/selectProjectCloud.svelte';
4242
4343
export let data;
@@ -163,7 +163,7 @@
163163
</DropList>
164164
</div>
165165

166-
{#if isCloud && data.organization.projects.length > 0 && $canWriteProjects}
166+
{#if isCloud && $currentPlan?.projects && $currentPlan?.projects > 0 && data.organization.projects.length > 0 && $canWriteProjects}
167167
<Alert.Inline
168168
title={`${data.projects.total - data.organization.projects.length} projects will be archived on ${billingProjectsLimitDate}`}>
169169
<Typography.Text>

src/routes/(console)/organization-[organization]/createProjectCloud.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
title={'Create project'}
6363
onSubmit={create}
6464
bind:error>
65-
<CreateProject showTitle={false} bind:id bind:projectName={name} bind:region {regions} />
65+
<CreateProject {projects} showTitle={false} bind:id bind:projectName={name} bind:region {regions} />
6666
<svelte:fragment slot="footer">
6767
<Button
6868
submit

0 commit comments

Comments
 (0)