mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
lint
This commit is contained in:
parent
9d24003517
commit
64e43bf7c7
1 changed files with 9 additions and 7 deletions
|
@ -49,7 +49,9 @@ export const fileOpen = <M extends boolean | undefined = false>(opts: {
|
||||||
const scheduleRejection = debounce(reject, INPUT_CHANGE_INTERVAL_MS);
|
const scheduleRejection = debounce(reject, INPUT_CHANGE_INTERVAL_MS);
|
||||||
|
|
||||||
const checkForFile = () => {
|
const checkForFile = () => {
|
||||||
if (isResolved) return;
|
if (isResolved) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (input.files?.length) {
|
if (input.files?.length) {
|
||||||
isResolved = true;
|
isResolved = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue