Skip to content

Commit 8081779

Browse files
committed
Remove nonexisting dataSources from figure
1 parent f2b5423 commit 8081779

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/lib/dereference.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default function dereference(
4040
let dereferencedData = srcRef.map((ref) => {
4141
if (config.deleteKeys && !(ref in dataSources)) {
4242
delete parent[dataKey];
43+
delete parent[dataKey + 'src'];
4344
}
4445
return dataSources[ref];
4546
});

0 commit comments

Comments
 (0)