Skip to content

Commit

Permalink
Include file info in source response whenever available
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfdsilva committed Sep 11, 2018
1 parent 45fdcb1 commit 1b1d630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ export function getSourceData (db, contentType, id) {
if (s.type === 'osm') {
// Never going to happen for projects, just scenarios.
structure[s.name].osmOptions = s.data;
} else if (s.type === 'file') {
} else if (s.type === 'file' || s.type === 'default') {
filesFetchTypes.push(s.name);
} else if (s.type === 'wbcatalog') {
filesFetchTypes.push(s.name);
structure[s.name].wbCatalogOptions = s.data;
} else if (s.type !== 'default') {
throw new Error('Unknown source type: ' + s.type);
Expand Down

0 comments on commit 1b1d630

Please sign in to comment.