Skip to content

Commit

Permalink
fix(view): show all storage options in widget mode
Browse files Browse the repository at this point in the history
fixes #385
  • Loading branch information
MauriceNino committed Sep 18, 2022
1 parent 73cd431 commit 6b969c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/view/src/widgets/storage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const useStorageLayout = (data: StorageInfo, config: Config) => {

type StorageChartProps = {
load?: StorageLoad;
index: number;
index?: number;
data: StorageInfo;
config: Config;
multiView: boolean;
Expand Down Expand Up @@ -190,7 +190,7 @@ export const StorageChart: FC<StorageChartProps> = ({
<DefaultVertBarChart
width={size.width}
height={size.height}
data={usageArr.slice(index * 3, index * 3 + 3)}
data={index ? usageArr.slice(index * 3, index * 3 + 3) : usageArr}
tooltipRenderer={x => {
const value = x.payload?.[0]?.payload as
| typeof usageArr[0]
Expand Down

0 comments on commit 6b969c3

Please sign in to comment.