1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-02-10 04:33:47 +02:00

fixed isNew checks

This commit is contained in:
Gani Georgiev 2023-08-22 13:01:08 +03:00
parent ed4f7c7358
commit 9c0d952543
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
let passwordConfirm = "";
let changePasswordToggle = false;
$: isNew = !!admin?.id;
$: isNew = !admin?.id;
$: hasChanges =
(isNew && email != "") || changePasswordToggle || email !== admin.email || avatar !== admin.avatar;

View File

@ -8,7 +8,7 @@
export let record;
export let collection;
export let isNew = !!record.id;
export let isNew = !record.id;
let originalUsername = record.username || null;