mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
fix the save button by removing deleted items from spaces then return all other elements status to unchanged
This commit is contained in:
@ -491,6 +491,12 @@ class SpaceManagementBloc
|
||||
event.communityUuid,
|
||||
emit,
|
||||
);
|
||||
event.spaces.removeWhere(
|
||||
(space) => space.status == SpaceStatus.deleted,
|
||||
);
|
||||
event.spaces.forEach(
|
||||
(space) => space.status = SpaceStatus.unchanged,
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
// emit(SpaceManagementError('Error saving spaces: $e'));
|
||||
|
Reference in New Issue
Block a user