From 5e630ec2e853f6e329a5af5b801a4a18072cb810 Mon Sep 17 00:00:00 2001 From: shinework Date: Thu, 6 Feb 2020 18:17:07 +0100 Subject: [PATCH] add moveSelectedComponentChildren to fileter action --- src/utils/undo.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/utils/undo.ts b/src/utils/undo.ts index 0729e79c60..767d69a8f8 100644 --- a/src/utils/undo.ts +++ b/src/utils/undo.ts @@ -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 }