mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
added one condition
This commit is contained in:
1 parent
7db228af20
commit
d22c39f9ab
1 file changed
+2
-3
+2
-3
@@ -123,13 +123,12 @@
|
||||
// Reactive statements
|
||||
$: collections = collectionList?.collections?.filter((n) => n.$id !== $collection.$id) ?? [];
|
||||
|
||||
$: if (editing && data.twoWay !== undefined) {
|
||||
way = data.twoWay ? 'two' : 'one';
|
||||
}
|
||||
$: if (!editing && way) {
|
||||
data.twoWay = way === 'two';
|
||||
if (way === 'two' && !data.twoWayKey) {
|
||||
data.twoWayKey = camelize($collection.name);
|
||||
} else if (way === 'one') {
|
||||
data.twoWayKey = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user