mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-26 00:49:41 +00:00
Refactor recursivelyInsert
method in SpacesRecursiveHelper
to use named parameters. Update CommunityStructureCanvas
to reflect these changes, ensuring correct space insertion under the specified parent.
This commit is contained in:
@ -330,10 +330,10 @@ class _CommunityStructureCanvasState extends State<CommunityStructureCanvas>
|
||||
communityUuid: widget.community.uuid,
|
||||
parentUuid: space.uuid,
|
||||
onSuccess: (updatedSpaceModel) {
|
||||
final updatedSpaces = SpacesRecursiveHelper.recusrivelyInsert(
|
||||
spaces,
|
||||
updatedSpaceModel,
|
||||
space.uuid,
|
||||
final updatedSpaces = SpacesRecursiveHelper.recursivelyInsert(
|
||||
spaces: widget.community.spaces,
|
||||
parentUuid: space.uuid,
|
||||
newSpace: updatedSpaceModel,
|
||||
);
|
||||
context.read<CommunitiesBloc>().add(
|
||||
CommunitiesUpdateCommunity(
|
||||
|
Reference in New Issue
Block a user