diff --git a/interface/src/app/status/Version.tsx b/interface/src/app/status/Version.tsx
index 363a090fa..9e33e006a 100644
--- a/interface/src/app/status/Version.tsx
+++ b/interface/src/app/status/Version.tsx
@@ -354,7 +354,9 @@ const Version = () => {
const { send: sendSetPartition } = useRequest(
(partition: string) => callAction({ action: 'setPartition', param: partition }),
{ immediate: false }
- );
+ ).onError((error) => {
+ toast.error(String(error.error?.message || 'An error occurred'));
+ });
const {
data,
@@ -401,7 +403,7 @@ const Version = () => {
await sendUploadURL(url).catch((error: Error) => {
toast.error(error.message);
});
- doRestart();
+ await doRestart();
},
[sendUploadURL]
);
@@ -608,28 +610,37 @@ const Version = () => {
alignItems: 'baseline'
}}
>
-
- {LL.PREVIOUS_VERSIONS()}
-
-
- {data.partitions.map((partition) => (
-
- v{partition.version} ({partition.partition}: {partition.size}
- {' KB'})
-
-
- ))}
-
-
+ {data.partitions.length > 0 && data.developer_mode && (
+ <>
+
+
+ {LL.PREVIOUS_VERSIONS()}
+
+
+
+ {data.partitions.map((partition) => (
+
+ v{partition.version} ({partition.partition}:{' '}
+ {partition.size}
+ {' KB'})
+
+
+ ))}
+
+ >
+ )}
{LL.STABLE()}
diff --git a/mock-api/restServer.ts b/mock-api/restServer.ts
index 3710f4443..be394c6e6 100644
--- a/mock-api/restServer.ts
+++ b/mock-api/restServer.ts
@@ -117,9 +117,10 @@ let system_status = {
partition: 'factory',
version: '3.7.3-dev.39',
size: 4672
- },
+ }
],
- developer_mode: true,
+ // partitions: [],
+ developer_mode: false,
model: '',
// model: 'BBQKees Electronics EMS Gateway E32 V2 (E32 V2.0 P3/2024011)',
// status: 0,