Fix explorer hook deps

Resolve hook dependency warnings in entries and releases explorers.

Signed-off-by: codex@lucy.xalior.com
This commit is contained in:
2026-01-11 13:30:10 +00:00
parent 2d4b1b2d5b
commit 00a13e3289
2 changed files with 43 additions and 28 deletions

View File

@@ -9,6 +9,8 @@ import ExplorerLayout from "@/components/explorer/ExplorerLayout";
import FilterSidebar from "@/components/explorer/FilterSidebar";
import MultiSelectChips from "@/components/explorer/MultiSelectChips";
const preferredMachineIds = [27, 26, 8, 9];
type Item = {
id: number;
title: string;
@@ -60,7 +62,6 @@ export default function EntriesExplorer({
scope?: SearchScope;
};
}) {
const preferredMachineIds = [27, 26, 8, 9];
const parseMachineIds = (value?: string) => {
if (!value) return preferredMachineIds.slice();
const ids = value