diff --git a/frontend/src/stores/roms.ts b/frontend/src/stores/roms.ts index 453067920..ba20a097e 100644 --- a/frontend/src/stores/roms.ts +++ b/frontend/src/stores/roms.ts @@ -3,7 +3,7 @@ import type { DetailedRomSchema, SimpleRomSchema } from "@/__generated__/"; import { type Platform } from "@/stores/platforms"; import { type Collection } from "@/stores/collections"; import type { ExtractPiniaStoreType } from "@/types"; -import { groupBy, isNull, uniqBy } from "lodash"; +import { groupBy, uniqBy } from "lodash"; import { nanoid } from "nanoid"; import { defineStore } from "pinia"; import storeGalleryFilter from "./galleryFilter"; @@ -47,9 +47,7 @@ export default defineStore("roms", { }); // Check if roms should be grouped - const groupRoms = isNull(localStorage.getItem("settings.groupRoms")) - ? true - : localStorage.getItem("settings.groupRoms") === "true"; + const groupRoms = localStorage.getItem("settings.groupRoms") === "true"; if (!groupRoms) { this._grouped = this.allRoms; return;