score:1

updateContactPath(path, index) {
    const { contactPaths } = this.state;
    const { setFieldValue } = this.props;
    this.setState(
      {
        [...contactPaths, [index]: path],
      },
      () => setFieldValue('contactPaths', this.state.contactPaths),
    );
  }

Related Query

More Query from same tag