Skip to content

Commit

Permalink
chore: improve comment about data source casing
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Jun 27, 2023
1 parent 6b48ad0 commit 8b55dc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/coalesce-vue/src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ export function mapQueryToParams<T extends StandardParameters>(

if ("dataSource" in dto) {
var dataSourceMeta = Object.values(modelMeta.dataSources).find(
// Match case insensitively on the DS name, because it feels like
// you should be able to use the PascalCase DS name here.
// Match case insensitively on the DS name,
// because sometimes it'll be camelCase (keys of `modelMeta.dataSources`)
// and sometimes it'll be PascalCase (values of `modelMeta.dataSources[x].name`).
(d) => d.name.toLowerCase() == dto.dataSource.toLowerCase()
);

Expand Down

0 comments on commit 8b55dc9

Please sign in to comment.