Skip to content

Commit 41d5989

Browse files
committed
fix(external-value): skip if value is present
1 parent d4f0de1 commit 41d5989

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/specmap/lib/external-value.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ const ExternalValueError = createError('ExternalValueError', function cb(message
9191
*/
9292
const plugin = {
9393
key: 'externalValue',
94-
plugin: (externalValue, _, fullPath) => {
94+
plugin: (externalValue, _, fullPath, __, patch) => {
9595
const parent = fullPath.slice(0, -1);
96+
const parentObj = lib.getIn(patch.value, parent);
97+
98+
if (parentObj.value !== undefined) {
99+
return undefined;
100+
}
96101

97102
if (shouldSkipResolution(fullPath)) {
98103
return undefined;

0 commit comments

Comments
 (0)