use brackets

This commit is contained in:
Mary Hipp 2023-07-20 09:38:52 -04:00 committed by psychedelicious
parent ffe7d5785b
commit 9dc28373d8

View File

@ -262,7 +262,9 @@ export const imagesApi = api.injectEndpoints({
const isChangingFromIntermediate = changes.is_intermediate === false;
// do not add intermediates to gallery cache
if (is_intermediate && !isChangingFromIntermediate) return;
if (is_intermediate && !isChangingFromIntermediate) {
return;
}
const categories = IMAGE_CATEGORIES.includes(image_category)
? IMAGE_CATEGORIES