Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: Resolve TypeScript errors in StackedMemoryBar and Settings

rcourtmand9833cf6b0f0
diff --git a/frontend-modern/src/components/Dashboard/StackedMemoryBar.tsx b/frontend-modern/src/components/Dashboard/StackedMemoryBar.tsx
index 7c4103d329..11550ce51c 100644
--- a/frontend-modern/src/components/Dashboard/StackedMemoryBar.tsx
+++ b/frontend-modern/src/components/Dashboard/StackedMemoryBar.tsx
@@ -199,7 +199,7 @@ export function StackedMemoryBar(props: StackedMemoryBarProps) {
</span>
</div>
- <Show when={(props.balloon || 0) > 0 && props.balloon < props.total}>
+ <Show when={(props.balloon || 0) > 0 && (props.balloon || 0) < props.total}>
<div class="flex justify-between gap-3 py-0.5 border-t border-gray-700/50">
<span class="text-yellow-400">Balloon Limit</span>
<span class="whitespace-nowrap text-gray-300">
diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx
index d64b72ce4b..7a97e99b88 100644
--- a/frontend-modern/src/components/Settings/Settings.tsx
+++ b/frontend-modern/src/components/Settings/Settings.tsx
@@ -2043,7 +2043,8 @@ const Settings: Component<SettingsProps> = (props) => {
updateStore.checkForUpdates(); // This will load version info too
// Only use version.channel as fallback if user hasn't configured a preference
// The user's saved updateChannel preference should take priority
- if (version.channel && !systemSettings.updateChannel) {
+ // Check the signal value since systemSettings is scoped to the previous try block
+ if (version.channel && !updateChannel()) {
setUpdateChannel(version.channel as 'stable' | 'rc');
}
} catch (error) {