Merge pull request #395 from appwrite/fix-consistent-data-document-rel-creation

fix: data maintained in doc creation navigation
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2023-04-12 15:09:38 +02:00
commit be3d991df1
1 file changed
+7
@@ -30,6 +30,13 @@
let offset = 0;
onMount(async () => {
if (value) {
if (isRelationshipToMany(attribute)) {
relatedList = value as string[];
} else {
singleRel = value as string;
}
}
documentList = await getDocuments();
if (editing && $doc?.[attribute.key]) {