Skip to content

Commit

Permalink
Merge pull request #81 from qlik-oss/QB-377/errorMessage
Browse files Browse the repository at this point in the history
React rendering Errors for few apps.
  • Loading branch information
PurwaShrivastava authored Dec 9, 2019
2 parents 58d0f54 + 2ab340f commit 96f09f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data-table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class DataTable extends React.PureComponent {
dimension2.forEach((dim2) => {
measurements.forEach((measure) => {
for (index = 0; index < injectSeparatorsArray.length; index++) {
if (dimension1[dimIndex].displayValue === injectSeparatorsArray[index].parents.dimension1.header) {
if (injectSeparatorsArray[index].parents && dimension1[dimIndex].displayValue === injectSeparatorsArray[index].parents.dimension1.header) {
if (dim2.displayValue === injectSeparatorsArray[index].parents.dimension2.header) {
if (measure.name === injectSeparatorsArray[index].parents.measurement.header) {
measurementDataRow.push(injectSeparatorsArray[index]);
Expand Down
2 changes: 1 addition & 1 deletion src/linked-scroll/linked-scroll-wrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LinkedScrollWrapper extends React.PureComponent {
unlinkComponent (component) {
const componentIndex = this.scrollElements.map(element => element.component).indexOf(component);
if (componentIndex !== -1) {
this.scrollElements.removeAt(componentIndex);
this.scrollElements.splice(componentIndex, 1);
// eslint-disable-next-line react/no-find-dom-node
const node = ReactDOM.findDOMNode(component);
node.onscroll = null;
Expand Down

0 comments on commit 96f09f9

Please sign in to comment.