Replace fast-deep-equal with isEqual from lodash (#7935)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent 07ce849c48
commit d75e587533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      package.json
  2. 4
      ui/app/components/app/permission-page-container/permission-page-container.component.js

@ -112,7 +112,6 @@
"ethjs-query": "^0.3.4",
"extension-port-stream": "^1.0.0",
"extensionizer": "^1.0.1",
"fast-deep-equal": "^2.0.1",
"fast-json-patch": "^2.0.4",
"fuse.js": "^3.2.0",
"gaba": "^1.9.3",

@ -1,6 +1,6 @@
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import deepEqual from 'fast-deep-equal'
import { isEqual } from 'lodash'
import { PermissionPageContainerContent } from '.'
import { PageContainerFooter } from '../../ui/page-container'
@ -40,7 +40,7 @@ export default class PermissionPageContainer extends Component {
componentDidUpdate () {
const newMethodNames = this.getRequestedMethodNames(this.props)
if (!deepEqual(Object.keys(this.state.selectedPermissions), newMethodNames)) {
if (!isEqual(Object.keys(this.state.selectedPermissions), newMethodNames)) {
// this should be a new request, so just overwrite
this.setState({
selectedPermissions: this.getRequestedMethodState(newMethodNames),

Loading…
Cancel
Save