Skip to content

Commit

Permalink
Prepare for TS 3.7 upgrade (#47683) (#47734)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes authored Oct 10, 2019
1 parent 5ac6037 commit 7033c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/code/model/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DetailSymbolInformation } from '@elastic/lsp-extension';
import { IRange } from 'monaco-editor';

import { DiffKind } from '../common/git_diff';
import { Repository, SourceHit } from '../model';
import { Repository } from '../model';
import { RepositoryUri } from './repository';

export interface Document {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/code/public/reducers/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const search = handleActions<SearchState, SearchPayload>(
{
[String(changeSearchScope)]: (state: SearchState, action: Action<SearchScope>) =>
produce<SearchState>(state, draft => {
if (Object.values(SearchScope).includes(action.payload)) {
if (action.payload && Object.values(SearchScope).includes(action.payload)) {
draft.scope = action.payload!;
} else {
draft.scope = SearchScope.DEFAULT;
Expand Down

0 comments on commit 7033c32

Please sign in to comment.