show autosave checkbox only if fileHandle exists

This commit is contained in:
dwelle 2021-04-06 21:34:18 +02:00
parent 6215256787
commit 2bf886c941

View File

@ -252,7 +252,7 @@ export const actionToggleAutosave = register({
}; };
}, },
PanelComponent: ({ appState, updateData }) => PanelComponent: ({ appState, updateData }) =>
supported ? ( supported && appState.fileHandle ? (
<label style={{ display: "flex" }}> <label style={{ display: "flex" }}>
<input <input
type="checkbox" type="checkbox"