diff options
Diffstat (limited to 'src/console')
| -rw-r--r-- | src/console/actions/console.ts | 2 | ||||
| -rw-r--r-- | src/console/components/Console.tsx | 3 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/src/console/actions/console.ts b/src/console/actions/console.ts index b1494b0..d03f52c 100644 --- a/src/console/actions/console.ts +++ b/src/console/actions/console.ts @@ -53,7 +53,7 @@ const enterCommand = async(    return hideCommand();  }; -const enterFind = (text: string): actions.ConsoleAction => { +const enterFind = (text?: string): actions.ConsoleAction => {    window.top.postMessage(JSON.stringify({      type: messages.CONSOLE_ENTER_FIND,      text, diff --git a/src/console/components/Console.tsx b/src/console/components/Console.tsx index 3274047..68cc523 100644 --- a/src/console/components/Console.tsx +++ b/src/console/components/Console.tsx @@ -38,7 +38,8 @@ class Console extends React.Component<Props> {      if (this.props.mode === 'command') {        return this.props.dispatch(consoleActions.enterCommand(value));      } else if (this.props.mode === 'find') { -      return this.props.dispatch(consoleActions.enterFind(value)); +      return this.props.dispatch(consoleActions.enterFind( +        value === '' ? undefined : value));      }    } | 
