diff --git a/src/components/aos/views/instances.tsx b/src/components/aos/views/instances.tsx index fdbdcc3..0c864cb 100755 --- a/src/components/aos/views/instances.tsx +++ b/src/components/aos/views/instances.tsx @@ -631,6 +631,10 @@ function InstanceDetailSheet({ const status = instance?.status ?? '' const fullDomain = instance ? `${instance.subdomain}.dfmpanel.eu` : '' + // Safe accessors — events and license may be undefined during loading + const events = instance?.events ?? [] + const license = instance?.license ?? null + return ( {/* License info */} - {instance.license && ( + {license && (

Lizenz @@ -745,20 +749,20 @@ function InstanceDetailSheet({ label="Key" value={ - {maskLicenseKey(instance.license.key)} + {maskLicenseKey(license.key)} } /> - + - {instance.license.status} + {license.status} } /> @@ -819,7 +823,7 @@ function InstanceDetailSheet({

{(() => { - const graphEvents = instance.events.filter( + const graphEvents = events.filter( (e) => e.type.startsWith('graphify.') ) const buildQueued = graphEvents.some( @@ -874,11 +878,11 @@ function InstanceDetailSheet({

Ereignisverlauf

- {instance.events.length === 0 ? ( + {events.length === 0 ? (

Keine Ereignisse protokolliert.

) : (
    - {instance.events.map((ev) => ( + {events.map((ev) => ( ))}