fix?: set id to null when is empty string

This commit is contained in:
Arman committed 2022-10-04 11:55:25 +02:00
1 parent f93ec0b6b3
commit e4542cd395
1 file changed
+3
@@ -47,6 +47,9 @@
$: if (!showDropdown) {
id = null;
}
$: if (!id?.length) {
id = null;
}
$: if (!showCreate) {
showDropdown = false;
error = null;