fix: correct reset and submission logic.

This commit is contained in:
Darshan committed 2025-01-23 13:46:28 +05:30
1 parent 12d90452bf
commit 4b955c36ae
1 file changed
+2 -3
@@ -70,8 +70,8 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
}
async function resetPlatformStore() {
await Promise.all([invalidate(Dependencies.PROJECT), invalidate(Dependencies.PLATFORMS)]);
createPlatform.reset();
await Promise.all([invalidate(Dependencies.PROJECT), invalidate(Dependencies.PLATFORMS)]);
}
onMount(() => {
@@ -121,8 +121,7 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
submissionLoader={isCreatingPlatform}
disabled={!$createPlatform.name ||
!$createPlatform.key ||
isCreatingPlatform}
on:click={async () => await createAndroidPlatform()}>
isCreatingPlatform}>
Create platform
</Button>
</Layout.Stack>