diff --git a/interface/src/project/Devices.tsx b/interface/src/project/Devices.tsx index a7d6e87e2..3af36dc59 100644 --- a/interface/src/project/Devices.tsx +++ b/interface/src/project/Devices.tsx @@ -426,8 +426,9 @@ const Devices: FC = () => { document.body.removeChild(downloadLink); }; + const device = { ...{ device: coreData.devices[deviceIndex] }, ...deviceData }; downloadBlob( - new Blob([JSON.stringify(deviceData, null, 2)], { + new Blob([JSON.stringify(device, null, 2)], { type: 'text;charset:utf-8' }) ); @@ -650,7 +651,7 @@ const Devices: FC = () => { - + {LL.SHOWING() + ' ' + shown_data.length + @@ -660,61 +661,40 @@ const Devices: FC = () => { LL.ENTITIES(shown_data.length)} setShowDeviceInfo(true)}> - + {me.admin && ( - + )} - + setOnlyFav(!onlyFav)}> {onlyFav ? ( - + ) : ( - + )} - + - +