fix sidebar width, v0.1.5
This commit is contained in:
@@ -76,6 +76,10 @@ export function useSidePanelMachine({
|
||||
}
|
||||
|
||||
const storedValue = localStorage.getItem(storageKey);
|
||||
if (storedValue == null || storedValue.trim() === '') {
|
||||
return defaultWidth;
|
||||
}
|
||||
|
||||
const parsed = Number(storedValue);
|
||||
if (!Number.isFinite(parsed)) {
|
||||
return defaultWidth;
|
||||
|
||||
Reference in New Issue
Block a user