Skip to content

Commit 25d71a4

Browse files
author
Lijun Zhang
committed
DM-9343:
Fixed the bug introduced (refering an undefined object:x.columnOrExpr when columnOrExpr is not defined)
1 parent ac7697a commit 25d71a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firefly/js/charts/ui/XYPlotOptions.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function resultsSuccess(callback, flds, optionParameters) {
5858
const xName = get(flds, ['x.columnOrExpr']);
5959
const yName = get(flds, ['y.columnOrExpr']);
6060

61-
const zoom = (xName!==optionParameters.x.columnOrExpr || yName!==optionParameters.y.columnOrExpr)? undefined:optionParameters.zoom;
61+
const zoom = (xName!== get(optionParameters, ['x','columnOrExpr']) || yName!==get(optionParameters, ['y','columnOrExpr']))? undefined:optionParameters.zoom;
6262
const xErr = get(flds, ['x.error']);
6363
const yErr = get(flds, ['y.error']);
6464

0 commit comments

Comments
 (0)