Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cloke committed Jul 15, 2024
1 parent eafa72d commit f409ee9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ember-apache-echarts/src/helpers/css-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export default helper(function cssSize(positional /*, named*/) {
? size.toString() !== '0'
? `${size}px`
: '0'
: size ?? '0';
: (size ?? '0');
});
8 changes: 4 additions & 4 deletions ember-apache-echarts/src/modifiers/bar-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ export default class BarChartModifier extends AbstractChartModifier {
categoryAxisScale === 'shared'
? context.data.categories[dataIndex]
: series.data[dataIndex]
? series.data[dataIndex][
args.categoryProperty ?? DEFAULT_CATEGORY_PROPERTY
]
: null;
? series.data[dataIndex][
args.categoryProperty ?? DEFAULT_CATEGORY_PROPERTY
]
: null;

if (name) {
chart.dispatchAction({
Expand Down
4 changes: 2 additions & 2 deletions ember-apache-echarts/src/utils/style/resolve-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function resolveStyle(style, context) {
isPixelDimension.test(value)
? parseFloat(value.slice(0, -2))
: isPercentDimension.test(value)
? resolvePercentDimension(value, property, context)
: value
? resolvePercentDimension(value, property, context)
: value
);
}

Expand Down

0 comments on commit f409ee9

Please sign in to comment.