diff --git a/src/renderers/Drawer.tsx b/src/renderers/Drawer.tsx index ec05fb81b..05eacb352 100644 --- a/src/renderers/Drawer.tsx +++ b/src/renderers/Drawer.tsx @@ -317,11 +317,7 @@ export default class Drawer extends React.Component { return; } - if (args.length) { - store.closeDialog(args[1]); - } else { - store.closeDialog(); - } + store.closeDialog(args[1]); } handleChildFinished(value: any, action: Action) {