FIX: Biome automatic "unsafe" updates
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
bc9fefcb70
commit
630f0e1baf
@@ -48,7 +48,7 @@ function App() {
|
||||
const importedModel = Model.from_bytes(model_bytes);
|
||||
localStorage.removeItem("selected");
|
||||
setModel(importedModel);
|
||||
} catch (e) {
|
||||
} catch (_e) {
|
||||
alert("Model not found, or failed to load");
|
||||
}
|
||||
} else if (exampleFilename) {
|
||||
@@ -57,7 +57,7 @@ function App() {
|
||||
const importedModel = Model.from_bytes(model_bytes);
|
||||
localStorage.removeItem("selected");
|
||||
setModel(importedModel);
|
||||
} catch (e) {
|
||||
} catch (_e) {
|
||||
alert("Example file not found, or failed to load");
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -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