fix: editing comment didn't always update the interface
Massimo Melina committed
Mar 28, 2024 at 21:50 UTC
4957f579aa791ffb7bbdf145a56cad5bcaadcd4b
1 file changed
+2
-2
frontend/src/BrowseFiles.ts
+2
-2
@@ -191,7 +191,7 @@ export function useMidnight() {
191
const PAGE_SEPARATOR_CLASS = 'page-separator'
192
193
interface EntryProps { entry: DirEntry, midnight: Date, separator?: string }
194
-const Entry = memo(({ entry, midnight, separator }: EntryProps) => {
194
+const Entry = ({ entry, midnight, separator }: EntryProps) => {
195
const { uri, isFolder, name } = entry
196
const { showFilter, selected, file_menu_on_link } = useSnapState()
197
const isLink = Boolean(entry.url)
@@ -263,7 +263,7 @@ const Entry = memo(({ entry, midnight, separator }: EntryProps) => {
263
]))
264
}
265
266
-})
266
+}
267
268
export function getEntryIcon(entry: DirEntry) {
269
return h(CustomCode, {