From 346779d3d7ec72e1d35a47c23b6e769f1799ecf0 Mon Sep 17 00:00:00 2001 From: mathis-m Date: Mon, 5 Apr 2021 15:36:06 +0000 Subject: [PATCH] fix(external-value): skip if value is present --- src/specmap/lib/external-value.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/specmap/lib/external-value.js b/src/specmap/lib/external-value.js index 15c5ae613..6a74f09b5 100644 --- a/src/specmap/lib/external-value.js +++ b/src/specmap/lib/external-value.js @@ -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;