some improvements with registering menu actions
This commit is contained in:
parent
5aba99403e
commit
2322f5f76d
6 changed files with 289 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue