diff --git a/services/datasets.js b/services/datasets.js index 4d1b819d71..c5ddd985bc 100644 --- a/services/datasets.js +++ b/services/datasets.js @@ -2,9 +2,9 @@ import { rwRequest, dataRequest } from 'utils/request'; const environmentString = () => { const env = process.env.NEXT_PUBLIC_FEATURE_ENV; - let envString = 'production'; + const envString = 'production'; if (env === 'preproduction') { - envString += ',preproduction'; + return 'preproduction'; } if (env === 'staging') { return 'staging';