-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove reset logic which cleared all slots (#2353)
* fix: remove reset logic which cleared all slots - Encountered a bug where if a file went from having one label (tag) to no labels then a validation error would appear and all tags would be lost - Discovered that in these cases resetAllSlots was being called causing this behaviour - Removed the reset all logic which resolved the bug * refactor: remove variable definition - The `updatedFileList` was being defined but the value of that defintion was never being used - Removed the definition and added repetition but hopefully leaving more readable code. * refactor: use cloneDeep instead of merge - Found that merge with a single argument was shallow copying - This lead to us directly updating the fileList - Changed to `cloneDeep` as there was already precedence within the file - As per #1811 structuredClone not yet supported in our stack
- Loading branch information
1 parent
a9db181
commit 723a0e7
Showing
2 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters