Skip to content
Snippets Groups Projects

Find and replace

Merged Christos requested to merge find-and-replace into master
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
@@ -101,17 +101,16 @@ const FindComponent = ({ close, expand, setPreviousSearcValue }) => {
useEffect(() => {
delayedSearch();
}, [searchValue, delayedSearch]);
}, [searchValue, delayedSearch, JSON.stringify(main.state)]);
const searchDocument = () => {
setCounterText('0 of 0');
console.log('search');
const results = helpers.getMatchesByView(
view,
searchValue,
findAndReplacePlugin,
);
console.log('search');
if (results > 0) {
setCounterText(`1 of ${results}`);
}