mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 05:31:15 +10:00
chore: fix linting (#544)
* fix: eslint (server) * fix: eslint (client) * commit package lock file * fix linting
This commit is contained in:
@ -40,7 +40,7 @@ export default function DrawioView(props: NodeViewProps) {
|
||||
const reader = new FileReader();
|
||||
reader.readAsDataURL(blob);
|
||||
reader.onloadend = () => {
|
||||
let base64data = (reader.result || '') as string;
|
||||
const base64data = (reader.result || '') as string;
|
||||
setInitialXML(base64data);
|
||||
};
|
||||
}
|
||||
|
||||
@ -456,7 +456,7 @@ export const getSuggestionItems = ({
|
||||
const fuzzyMatch = (query: string, target: string) => {
|
||||
let queryIndex = 0;
|
||||
target = target.toLowerCase();
|
||||
for (let char of target) {
|
||||
for (const char of target) {
|
||||
if (query[queryIndex] === char) queryIndex++;
|
||||
if (queryIndex === query.length) return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user