Skip to content

Commit 0bb3de3

Browse files
committed
fix: logic for filter and message.
1 parent 7f322dc commit 0bb3de3

File tree

1 file changed

+2
-2
lines changed
  • src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/document-[document]

1 file changed

+2
-2
lines changed

src/routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/document-[document]/delete.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
'restrict' = 'Document can not be deleted'
5656
}
5757
58-
$: relAttributes = $attributes?.filter((attribute) =>
59-
isRelationship(attribute)
58+
$: relAttributes = $attributes?.filter(
59+
(attribute) => isRelationship(attribute) && attribute.side === 'parent'
6060
) as Models.AttributeRelationship[];
6161
</script>
6262

0 commit comments

Comments
 (0)