Skip to content

Commit

Permalink
add moveSelectedComponentChildren to fileter action
Browse files Browse the repository at this point in the history
  • Loading branch information
baptadn committed Feb 6, 2020
1 parent 8fcfb9a commit 5e630ec
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/utils/undo.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import { Action } from "@rematch/core";
import { Action } from '@rematch/core'

export default function filterActions(action: Action) {
if (
[
"components/reset",
"components/loadDemo",
"components/resetProps",
"components/updateProps",
"components/addComponent",
"components/deleteComponent",
"components/moveComponent",
"components/addMetaComponent"
'components/reset',
'components/loadDemo',
'components/resetProps',
'components/updateProps',
'components/addComponent',
'components/deleteComponent',
'components/moveComponent',
'components/addMetaComponent',
'components/moveSelectedComponentChildren',
].includes(action.type)
) {
return true;
return true
}

return false;
return false
}

0 comments on commit 5e630ec

Please sign in to comment.