Skip to content

Commit

Permalink
update protocol validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccamadsen committed Apr 29, 2022
1 parent 68537d9 commit c36d78a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/__mocks__/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-env jest */
/* eslint-disable import/prefer-default-export */

export const APP_SCHEMA_VERSION = 7;
export const APP_SCHEMA_VERSION = 8;
4 changes: 2 additions & 2 deletions src/components/sections/ValidationSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { useSelector, useDispatch } from 'react-redux';
import { change, formValueSelector } from 'redux-form';
import { get, filter } from 'lodash';
import { get, pickBy } from 'lodash';
import { Section, Row } from '@components/EditorLayout';
import Validations from '@components/Validations';
import { getFieldId } from '../../utils/issues';
Expand All @@ -25,7 +25,7 @@ const ValidationSection = ({
return true;
};

const existingVariablesForType = filter(existingVariables, (variable) => get(variable, 'type') === variableType);
const existingVariablesForType = pickBy(existingVariables, (variable) => get(variable, 'type') === variableType);
return (
<Section
disabled={disabled}
Expand Down
2 changes: 1 addition & 1 deletion src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const COLOR_PALETTE_BY_ENTITY = {
};

// Target protocol schema version. Used to determine compatibility & migration
export const APP_SCHEMA_VERSION = 7;
export const APP_SCHEMA_VERSION = 8;

// Maps for supported asset types within the app. Used by asset chooser.
export const SUPPORTED_EXTENSION_TYPE_MAP = {
Expand Down

0 comments on commit c36d78a

Please sign in to comment.