Skip to content

Commit

Permalink
fix #142756.
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Mar 28, 2022
1 parent 660f140 commit 3dc701c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class NotebookFindWidget extends SimpleFindReplaceWidget implements INote
}

const matches = this._findModel.findMatches;
this._replaceAllBtn.setEnabled(matches.find(match => match.modelMatchCount < match.matches.length) === null);
this._replaceAllBtn.setEnabled(matches.length > 0 && matches.find(match => match.modelMatchCount < match.matches.length) === undefined);

if (e.filters) {
this._findInput.updateFilterState((this._state.filters?.markupPreview ?? false) || (this._state.filters?.codeOutput ?? false));
Expand Down

0 comments on commit 3dc701c

Please sign in to comment.