Skip to content

Commit

Permalink
fix: missing data_source_dimension in included datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
demirgazetic committed Jul 24, 2024
1 parent 35c1fe4 commit 04bb879
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ exports.sourceNodes = async function ({ actions }, options) {
if (options.includeDatasources === undefined) {
datasources = await fetchAllDatasources();
} else if (options.includeDatasources.length > 0) {
datasources = options.includeDatasources;
const allDatasources = await fetchAllDatasources();
const includeSet = new Set(options.includeDatasources);

datasources = allDatasources.filter(datasource => includeSet.has(datasource.slug));
}

await Promise.all(
Expand Down

0 comments on commit 04bb879

Please sign in to comment.