do not select deleted elements (#1215)

This commit is contained in:
Daishi Kato 2020-04-04 19:27:34 +09:00 committed by GitHub
parent ae1eee15cc
commit 44f871de71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,9 @@ export const actionSelectAll = register({
appState: { appState: {
...appState, ...appState,
selectedElementIds: elements.reduce((map, element) => { selectedElementIds: elements.reduce((map, element) => {
map[element.id] = true; if (!element.isDeleted) {
map[element.id] = true;
}
return map; return map;
}, {} as any), }, {} as any),
}, },