mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: condition
This commit is contained in:
1 parent
3f3ba74531
commit
6aa0fac878
1 file changed
+6
-4
+6
-4
@@ -143,10 +143,12 @@
|
||||
<svelte:fragment slot="actions">
|
||||
<Button
|
||||
submit
|
||||
disabled={!(
|
||||
difference(scopes ?? [], $key.scopes ?? []).length !== 0 ||
|
||||
difference($key.scopes ?? [], scopes ?? []).length !== 0
|
||||
)}>Update</Button>
|
||||
disabled={scopes &&
|
||||
$key?.scopes &&
|
||||
!(
|
||||
difference(scopes, $key.scopes).length !== 0 ||
|
||||
difference($key.scopes, scopes).length !== 0
|
||||
)}>Update</Button>
|
||||
</svelte:fragment>
|
||||
</CardGrid>
|
||||
</Form>
|
||||
|
||||
Reference in new issue
Block a user