Fixed Device Viewer not Opening because of past updates

This commit is contained in:
2026-02-18 20:23:12 +02:00
parent aad8942d65
commit 0a99fb25f3
5 changed files with 5 additions and 4 deletions

View File

@@ -354,6 +354,7 @@ export default function DeviceDetail() {
const [showDelete, setShowDelete] = useState(false);
const [mqttStatus, setMqttStatus] = useState(null);
const [locationName, setLocationName] = useState(null);
const cols = useBreakpoint();
const [deviceUsers, setDeviceUsers] = useState([]);
const [usersLoading, setUsersLoading] = useState(false);
@@ -447,8 +448,6 @@ export default function DeviceDetail() {
const nextMaintenance = maintainedOn && stats.maintainancePeriod ? addDays(maintainedOn, stats.maintainancePeriod) : null;
const maintenanceDaysLeft = nextMaintenance ? daysUntil(nextMaintenance) : null;
const cols = useBreakpoint();
// ===== Section definitions =====
const deviceInfoSection = (

View File

@@ -16,8 +16,8 @@ const MELODY_TONES = ["", "normal", "festive", "cheerful", "lamentation"];
// All available columns with their defaults
const ALL_COLUMNS = [
{ key: "status", label: "Status", defaultOn: true },
{ key: "color", label: "Color", defaultOn: true },
{ key: "status", label: "Status", defaultOn: true },
{ key: "name", label: "Name", defaultOn: true, alwaysOn: true },
{ key: "description", label: "Description", defaultOn: false },
{ key: "type", label: "Type", defaultOn: true },