Skip to content

Commit b38e43a

Browse files
committed
Rebasing and test fix
1 parent 29bb814 commit b38e43a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/components/fields/__tests__/AnnotationRef-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('<AnnotationRef>', () => {
2727
const options = drop.first().prop('options');
2828
expect(options.length).toBe(3);
2929
expect(options[0]).toEqual({label: 'Canvas', value: 'paper'});
30-
expect(options[1]).toEqual({label: 'y', value: 'y'});
30+
expect(options[1]).toEqual({label: 'Y', value: 'y'});
3131
expect(options[2]).toEqual({label: 'yaxis2 title', value: 'y2'});
3232
});
3333

@@ -114,7 +114,7 @@ describe('<AnnotationArrowRef>', () => {
114114
const options = drop.first().prop('options');
115115
expect(options.length).toBe(3);
116116
expect(options[0]).toEqual({label: 'in pixels', value: 'pixel'});
117-
expect(options[1]).toEqual({label: 'y', value: 'y'});
117+
expect(options[1]).toEqual({label: 'Y', value: 'y'});
118118
expect(options[2]).toEqual({label: 'yaxis2 title', value: 'y2'});
119119
});
120120
});

src/components/fields/derived.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,21 +369,15 @@ export const PositioningNumeric = connectToContainer(UnconnectedNumeric, {
369369
},
370370
});
371371

372-
function computeAxesRefOptions(axes, refAxis) {
372+
function computeAxesRefOptions(axes, propsAttr) {
373373
const options = [];
374374
for (let i = 0; i < axes.length; i++) {
375375
const ax = axes[i];
376-
<<<<<<< HEAD
377-
if (ax._id.charAt(0) === refAxis) {
378-
// checking user data for title avoids default "Click to enter axis title"
379-
const label = striptags(ax._input.title || ax._id);
380-
=======
381376
if (
382377
ax._id.charAt(0) === propsAttr.charAt(0) ||
383378
ax._id.charAt(0) === propsAttr.charAt(1)
384379
) {
385380
const label = getAxisTitle(ax);
386-
>>>>>>> Standardize axis titles
387381
options.push({label, value: ax._id});
388382
}
389383
}

0 commit comments

Comments
 (0)