Skip to content

Commit

Permalink
use tostring to be more consistent with the actual behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Apr 22, 2024
1 parent 2e9e644 commit f99c195
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const deleteAllDataSources = () => {

const createUrlParam = (label, id) => {
const dataSourceObj = { label, id };
return `?dataSource=${JSON.stringify(dataSourceObj)}`;
return `?dataSource=${JSON.stringify(dataSourceObj).toString()}`;
};

let externalDataSourceId;
Expand All @@ -75,7 +75,6 @@ describe('Multi-datasources enabled', () => {
localStorage.setItem('home:newThemeModal:show', 'false');
createDataSource().then((resp) => {
if (resp && resp.body) {
cy.log(JSON.stringify(resp.body));
externalDataSourceId = resp.body.id;
}
externalDataSourceUrl = createUrlParam(externalTitle, externalDataSourceId);
Expand Down

0 comments on commit f99c195

Please sign in to comment.