Make library hide/reveal instant instead of rewriting the whole catalog.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -29,7 +29,7 @@ export default defineEventHandler(async (event) => {
|
||||
family: family || hasLocks
|
||||
})
|
||||
}
|
||||
if (hasHide) setClipHidden(owner, id, body.hideThumbnail === true, family)
|
||||
if (hasHide) await setClipHidden(owner, id, body.hideThumbnail === true, family)
|
||||
if (hasHide && !folderId && !hasName && !hasLocks && !hasRefs) {
|
||||
return { id, hideThumbnail: body.hideThumbnail === true }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user