fix: data maitained in doc creation navigation

This commit is contained in:
Arman
2023-04-12 14:59:52 +02:00
parent c041d7ebf9
commit a97708eedf
@@ -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]) {