fix busctl json parse: data is double-wrapped, use data[0]

This commit is contained in:
Damocles 2026-05-01 19:24:32 +02:00
parent 8ab3fc5f6b
commit 40cc681e9a
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ QtObject {
function _parseUnits(json) {
try {
const parsed = JSON.parse(json);
return (parsed.data || []).map(u => ({
return (parsed.data?.[0] || []).map(u => ({
name: u[0],
description: u[1],
loadState: u[2],