Skip to content

Commit

Permalink
fix: only show child limit error if it's not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet committed Sep 24, 2024
1 parent a0842ea commit f3c0791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ui/src/components/FormSpaceAdvanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const formErrors = computed(() => {
errors.child = 'Space already configured as sub-space';
}
if (children.value.length >= CHILDREN_LIMIT) {
if (child.value && children.value.length >= CHILDREN_LIMIT) {
errors.child = 'Maximum number of sub-spaces reached';
}
Expand Down

0 comments on commit f3c0791

Please sign in to comment.