Skip to content

Commit

Permalink
Fixing MDS Support
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <[email protected]>
  • Loading branch information
saimedhi committed Aug 12, 2024
1 parent 5350e45 commit 8fb7685
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type Index = {
********** WORKFLOW TYPES/INTERFACES **********
*/
export type MDSQueryParams = {
dataSourceId: string;
dataSourceId?: string;
};

export type ConfigFieldType =
Expand Down
4 changes: 3 additions & 1 deletion public/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ export const getDataSourceFromURL = (location: {
}): MDSQueryParams => {
const queryParams = queryString.parse(location.search);
const dataSourceId = queryParams.dataSourceId;
return { dataSourceId: typeof dataSourceId === 'string' ? dataSourceId : '' };
return {
dataSourceId: typeof dataSourceId === 'string' ? dataSourceId : undefined,
};
};

export const constructHrefWithDataSourceId = (
Expand Down

0 comments on commit 8fb7685

Please sign in to comment.