Skip to content

Commit be3d991

Browse files
Merge pull request #395 from appwrite/fix-consistent-data-document-rel-creation
fix: data maintained in doc creation navigation
2 parents c041d7e + a97708e commit be3d991

File tree

1 file changed

+7
-0
lines changed
  • src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes

1 file changed

+7
-0
lines changed

src/routes/console/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/attributes/relationship.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
let offset = 0;
3131
3232
onMount(async () => {
33+
if (value) {
34+
if (isRelationshipToMany(attribute)) {
35+
relatedList = value as string[];
36+
} else {
37+
singleRel = value as string;
38+
}
39+
}
3340
documentList = await getDocuments();
3441
3542
if (editing && $doc?.[attribute.key]) {

0 commit comments

Comments
 (0)