[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-04-04 02:48:22 +00:00
committed by GitHub
parent 96d1abb4b6
commit e4f6e5ea54

View File

@@ -106,7 +106,10 @@ export const ShowDomains = ({ id, type }: Props) => {
);
const [viewMode, setViewMode] = useState<"grid" | "table">(() => {
if (typeof window !== "undefined") {
return (localStorage.getItem("domains-view-mode") as "grid" | "table") ?? "grid";
return (
(localStorage.getItem("domains-view-mode") as "grid" | "table") ??
"grid"
);
}
return "grid";
});