Skip to content

Commit c36d78a

Browse files
committed
update protocol validation
1 parent 68537d9 commit c36d78a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/__mocks__/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/* eslint-env jest */
22
/* eslint-disable import/prefer-default-export */
33

4-
export const APP_SCHEMA_VERSION = 7;
4+
export const APP_SCHEMA_VERSION = 8;

src/components/sections/ValidationSection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import { useSelector, useDispatch } from 'react-redux';
44
import { change, formValueSelector } from 'redux-form';
5-
import { get, filter } from 'lodash';
5+
import { get, pickBy } from 'lodash';
66
import { Section, Row } from '@components/EditorLayout';
77
import Validations from '@components/Validations';
88
import { getFieldId } from '../../utils/issues';
@@ -25,7 +25,7 @@ const ValidationSection = ({
2525
return true;
2626
};
2727

28-
const existingVariablesForType = filter(existingVariables, (variable) => get(variable, 'type') === variableType);
28+
const existingVariablesForType = pickBy(existingVariables, (variable) => get(variable, 'type') === variableType);
2929
return (
3030
<Section
3131
disabled={disabled}

src/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const COLOR_PALETTE_BY_ENTITY = {
2020
};
2121

2222
// Target protocol schema version. Used to determine compatibility & migration
23-
export const APP_SCHEMA_VERSION = 7;
23+
export const APP_SCHEMA_VERSION = 8;
2424

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

0 commit comments

Comments
 (0)