Skip to content

Commit

Permalink
remove demo source
Browse files Browse the repository at this point in the history
Signed-off-by: ravi-kumar-pilla <[email protected]>
  • Loading branch information
ravi-kumar-pilla committed Mar 14, 2024
1 parent 7cf36bd commit fec38de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/utils/data-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ export const getSourceID = () => {
const urlParams = new URL(document.location.href).searchParams;
const dataSource = urlParams.get('data');
const { REACT_APP_DATA_SOURCE } = process.env;
const isDemo = document.location.host === 'kedro-org.github.io';

if (dataSource) {
return encodeURIComponent(dataSource);
}
if (REACT_APP_DATA_SOURCE) {
return REACT_APP_DATA_SOURCE;
}
if (isDemo) {
return 'demo';
}
return 'json';
};

Expand Down

0 comments on commit fec38de

Please sign in to comment.