mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fixed reactivity issues for the updates
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
column: Models.ColumnLine;
|
||||
}
|
||||
|
||||
let { label, value, limited = false, column }: Props = $props();
|
||||
let { label, value = $bindable(), limited = false, column }: Props = $props();
|
||||
|
||||
let nullable = $state(false);
|
||||
$effect(() => {
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
column: Models.ColumnPoint;
|
||||
}
|
||||
|
||||
let { label, value, limited = false, column }: Props = $props();
|
||||
let { label, value = $bindable(), limited = false, column }: Props = $props();
|
||||
|
||||
let nullable = $state(false);
|
||||
|
||||
|
||||
+4
-8
@@ -13,7 +13,7 @@
|
||||
column: Models.ColumnPolygon;
|
||||
}
|
||||
|
||||
let { label, value, limited = false, column }: Props = $props();
|
||||
let { label, value = $bindable(), limited = false, column }: Props = $props();
|
||||
|
||||
let nullable = $state(false);
|
||||
|
||||
@@ -38,13 +38,9 @@
|
||||
function deleteCoordinate(ringIndex: number) {
|
||||
if (!value) return;
|
||||
|
||||
const ring = value.at(ringIndex);
|
||||
|
||||
ring.splice(ring.length - 1, 1);
|
||||
if (ring.length === 0) {
|
||||
value.splice(ringIndex, 1);
|
||||
}
|
||||
value = [...value];
|
||||
value = value
|
||||
.map((ring, i) => (i === ringIndex ? ring.slice(0, -1) : ring))
|
||||
.filter((ring) => ring.length > 0);
|
||||
}
|
||||
|
||||
function handlePointChange(
|
||||
|
||||
Reference in New Issue
Block a user