fix: console warning using a selection checkbox

Massimo Melina committed Oct 2, 2024 at 23:53 UTC c281ab41dbb2d7502e7f7ff19a56f860aeff9819
1 file changed +1 -1
frontend/src/BrowseFiles.ts
+1 -1
@@ -259,7 +259,7 @@ const Entry = ({ entry, midnight, separator }: EntryProps) => {
259 }, showFilter && h(Checkbox, {
260 disabled: isLink,
261 'aria-labelledby': ariaId,
262 - value: selected[uri],
262 + value: selected[uri] || false,
263 onChange(v) {
264 if (v)
265 return state.selected[uri] = true