♻️ Pull request feedback
This commit is contained in:
1 parent
52a1dc5523
commit
dabb7c2409
3 files changed
+12
-11
No files matched your search
@@ -184,7 +184,7 @@ export const useCategoryActions = (configName: string | undefined, category: Cat
|
||||
if (!configName) return;
|
||||
updateConfig(
|
||||
configName,
|
||||
(previous): ConfigType => {
|
||||
(previous) => {
|
||||
const currentItem = previous.categories.find((x) => x.id === category.id);
|
||||
if (!currentItem) return previous;
|
||||
// Find the main wrapper
|
||||
|
||||
Reference in new issue
Block a user