Skip to content

Commit

Permalink
fix: sysinfo:type selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oneirocosm committed Oct 17, 2024
1 parent 65fb231 commit ee292ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/app/view/cpuplot/cpuplot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class CpuPlotViewModel {
});
this.plotTypeSelectedAtom = jotai.atom((get) => {
const blockData = get(this.blockAtom);
const plotType = blockData?.meta?.["graph:sysinfotype"];
const plotType = blockData?.meta?.["sysinfo:type"];
if (plotType == null || typeof plotType != "string") {
return "CPU";
}
Expand Down Expand Up @@ -218,6 +218,7 @@ class CpuPlotViewModel {
globalStore.set(this.loadingAtom, false);
}
}

getSettingsMenuItems(): ContextMenuItem[] {
const fullConfig = globalStore.get(atoms.fullConfigAtom);
const termThemes = fullConfig?.termthemes ?? {};
Expand Down

0 comments on commit ee292ac

Please sign in to comment.