for create

This commit is contained in:
hannathkadher
2024-12-09 10:02:57 +04:00
parent aff7ceeac4
commit 4055265b0a

View File

@ -384,6 +384,7 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
bool _isNameConflict(String value) {
return (widget.parentSpace?.children.any((child) => child.name == value) ??
false) ||
(widget.parentSpace?.name == value) ||
(widget.editSpace?.parent?.name == value) ||
(widget.editSpace?.children.any((child) => child.name == value) ??
false);