Skip to content

Commit 87663b3

Browse files
derefence does not throw an error when it does not find src key
1 parent 3f072fa commit 87663b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/dereference.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ export default function dereference(container, dataSources) {
1212
const data = dataSources[srcRef];
1313

1414
if (!Array.isArray(data)) {
15-
throw new Error(
16-
`Attempted to dereference ${key} but no array data found for ${srcRef}.`
17-
);
15+
return;
1816
}
1917

2018
const dataKey = key.replace(SRC_ATTR_PATTERN, '');

0 commit comments

Comments
 (0)