Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
fix: populate items during initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ymchandra committed Apr 29, 2024
1 parent c49a262 commit 5658e11
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions charts/waterfallchart/src/styling-panel-property-definiton.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
* @returns definition or undefined if nothing is toggled on by feature flags
*/
const getStylingItems = (flags, styleOptions) => {
const items = {};
items.axisLabelSection = {
translation: 'properties.axis.label',
component: 'panel-section',
items: styleOptions.getOptions('axis', 'axis.label.name'),
};
items.valueLabelSection = {
translation: 'properties.value.label',
component: 'panel-section',
items: styleOptions.getOptions('value', 'label.value'),
const items = {
axisLabelSection: {
translation: 'properties.axis.label',
component: 'panel-section',
items: styleOptions.getOptions('axis', 'axis.label.name'),
},
valueLabelSection: {
translation: 'properties.value.label',
component: 'panel-section',
items: styleOptions.getOptions('value', 'label.value'),
},
};

if (flags?.isEnabled('CLIENT_IM_3051')) {
Expand Down

0 comments on commit 5658e11

Please sign in to comment.