Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
swap(ctx, state => ({
...state,
registry: {
...state.registry,
searchProviders: withoutKey(state.registry.searchProviders, name),
},
}));
}
swap(ctx, state => ({
...state,
registry: {
...state.registry,
modals: withoutKey(state.registry.modals, name),
},
}));
}
swap(ctx, state => ({
...state,
registry: {
...state.registry,
menuItems: withoutKey(state.registry.menuItems, name),
},
}));
}
swap(ctx, state => ({
...state,
feeds: withoutKey(state.feeds, id),
}));
}
swap(ctx, state => ({
...state,
registry: {
...state.registry,
tiles: withoutKey(state.registry.tiles, name),
},
}));
}