mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: prefs button disabled when prefs empty
This commit is contained in:
@@ -110,6 +110,11 @@
|
||||
<Button
|
||||
noMargin
|
||||
text
|
||||
disabled={prefs?.length &&
|
||||
prefs[prefs.length - 1][0] &&
|
||||
prefs[prefs.length - 1][1]
|
||||
? false
|
||||
: true}
|
||||
on:click={() => {
|
||||
if (prefs[prefs.length - 1][0] && prefs[prefs.length - 1][1]) {
|
||||
prefs.push(['', '']);
|
||||
|
||||
Reference in New Issue
Block a user