some improvements with registering menu actions

This commit is contained in:
Hanusiak Piotr 2022-01-31 12:26:37 +01:00
parent 5aba99403e
commit 2322f5f76d
6 changed files with 289 additions and 14 deletions

View file

@ -26,7 +26,6 @@ function createActionsMenuStore() {
removeAction: (actionName: string) => {
update((data) => {
const actionIndex = data?.actions.findIndex(action => action.actionName === actionName);
console.log(actionIndex);
if (actionIndex !== undefined && actionIndex != -1) {
data?.actions.splice(actionIndex, 1);
}