Skip to content

Commit dc793f1

Browse files
authored
Merge pull request #2694 from MichaelDvP/dev
fix dashboard write #2693
2 parents 898acb9 + 77e0b7d commit dc793f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/src/app/main/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const Dashboard = memo(() => {
8282
if (!selectedDashboardItem) {
8383
return;
8484
}
85-
const id = selectedDashboardItem.id; // this is the parent ID
85+
const id = selectedDashboardItem.parentNode.id; // this is the parent ID
8686
await sendDeviceValue({ id, c: devicevalue.c ?? '', v: devicevalue.v })
8787
.then(() => {
8888
toast.success(LL.WRITE_CMD_SENT());

0 commit comments

Comments
 (0)