Skip to content

Commit

Permalink
changed error message to no data (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
GurinderRawala authored Aug 12, 2024
1 parent c60233a commit 538f96a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/app/plugins/panel/barchart/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe('BarChart utils', () => {
});
const result = prepareBarChartDisplayValues([df], createTheme(), { stacking: StackingMode.None } as Options);
const warning = assertIsDefined('warn' in result ? result : null);
expect(warning.warn).toEqual('Bar charts requires a string or time field');
expect(warning.warn).toEqual('No Data');
expect(warning).not.toHaveProperty('viz');
});

Expand Down
2 changes: 1 addition & 1 deletion public/app/plugins/panel/barchart/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export function prepareBarChartDisplayValues(

if (!firstField) {
return {
warn: 'Bar charts requires a string or time field',
warn: 'No Data',
};
}

Expand Down

0 comments on commit 538f96a

Please sign in to comment.