FIX: Biome automatic "unsafe" updates
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
bc9fefcb70
commit
630f0e1baf
@@ -189,11 +189,9 @@ function UploadFileDialog(properties: {
|
||||
</DropZone>
|
||||
) : (
|
||||
<DropZone>
|
||||
<>
|
||||
<div style={{ flexGrow: 2 }} />
|
||||
<div>{message}</div>
|
||||
<div style={{ flexGrow: 2 }} />
|
||||
</>
|
||||
<div style={{ flexGrow: 2 }} />
|
||||
<div>{message}</div>
|
||||
<div style={{ flexGrow: 2 }} />
|
||||
</DropZone>
|
||||
)}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export function updateNameSelectedWorkbook(model: Model, newName: string) {
|
||||
models[uuid] = { name: newName, createdAt: Date.now() };
|
||||
}
|
||||
localStorage.setItem("models", JSON.stringify(models));
|
||||
} catch (e) {
|
||||
} catch (_e) {
|
||||
console.warn("Failed saving new name");
|
||||
}
|
||||
}
|
||||
@@ -130,7 +130,7 @@ export function isStorageEmpty(): boolean {
|
||||
try {
|
||||
const models = JSON.parse(modelsJson);
|
||||
return Object.keys(models).length === 0;
|
||||
} catch (e) {
|
||||
} catch (_e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user