fix: hide version column if no agents are connected

This commit is contained in:
Aarnav Tale 2025-04-19 17:13:28 -04:00
parent 645cc38e55
commit a6077a4ce2
No known key found for this signature in database

View File

@ -151,7 +151,7 @@ export default function Page() {
node={machine}
users={data.users}
magic={data.magic}
isAgent={data.agent === machine.nodeKey}
isAgent={data.agent ? data.agent === machine.nodeKey : undefined}
isDisabled={
data.writable
? false // If the user has write permissions, they can edit all machines