From 69efc1cbb53adf3874727aad2d428c2e383ceb8f 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 15c5ae613c..6a74f09b51 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;