Skip to content

Commit

Permalink
fix(external-value): skip if value is present
Browse files Browse the repository at this point in the history
  • Loading branch information
mathis-m committed Apr 5, 2021
1 parent ffcfa4b commit 69efc1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/specmap/lib/external-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,13 @@ const ExternalValueError = createError('ExternalValueError', function cb(message
*/
const plugin = {
key: 'externalValue',
plugin: (externalValue, _, fullPath) => {
plugin: (externalValue, _, fullPath, __, patch) => {
const parent = fullPath.slice(0, -1);
const parentObj = lib.getIn(patch.value, parent);

if (parentObj.value !== undefined) {
return undefined;
}

if (shouldSkipResolution(fullPath)) {
return undefined;
Expand Down

0 comments on commit 69efc1c

Please sign in to comment.