Skip to content

Commit

Permalink
FIX ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Jul 5, 2023
1 parent 28d149b commit 2cd73ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions client/src/components/BlockLinkField/BlockLinkField.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class BlockLinkField extends Component {
this.componentDidUpdate();
}


/**
* When the component is updated, parse the input value (provided as JSON) and store it
* in local state as a structured object.
Expand All @@ -51,7 +50,7 @@ class BlockLinkField extends Component {
.some((key) => value[key] !== stateValue[key]);

if (stateNeedUpdate) {
// See https://github.com/yannickcr/eslint-plugin-react/issues/1707
// See https://github.com/yannickcr/eslint-plugin-react/issues/1707
this.setState({value});// eslint-disable-line
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/* global jest, test, describe, it, expect */

import React from 'react';
import { Component as BlockLinkField } from '../BlockLinkField';
import { render, fireEvent, screen } from '@testing-library/react';
import { Component as BlockLinkField } from '../BlockLinkField';

function makeProps(obj = {}) {
return {
Expand Down

0 comments on commit 2cd73ca

Please sign in to comment.