diff --git a/package-lock.json b/package-lock.json index 6541e7d..8b2dd8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@diamondlightsource/cs-web-lib", - "version": "0.9.0", + "version": "0.9.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@diamondlightsource/cs-web-lib", - "version": "0.9.0", + "version": "0.9.1", "license": "ISC", "dependencies": { "apollo-link-retry": "^2.2.16", diff --git a/package.json b/package.json index 273b36d..700851f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@diamondlightsource/cs-web-lib", - "version": "0.9.0", + "version": "0.9.1", "description": "Control system web library", "main": "dist/cjs/index.js", "scripts": { diff --git a/src/redux/store.ts b/src/redux/store.ts index 635e08e..04ab51e 100644 --- a/src/redux/store.ts +++ b/src/redux/store.ts @@ -23,10 +23,10 @@ const buildConnection = (config?: CsWebLibConfig) => { config?.PVWS_SOCKET ?? process.env.VITE_PVWS_SOCKET ?? import.meta.env.VITE_PVWS_SOCKET; - const PVWS_SSL = - (config?.PVWS_SSL ?? - process.env.VITE_PVWS_SSL ?? - import.meta.env.VITE_PVWS_SSL) === "true"; + const PVWS_SSL = !!( + config?.PVWS_SSL ?? + (process.env.VITE_PVWS_SSL ?? import.meta.env.VITE_PVWS_SSL) === "true" + ); const simulator = new SimulatorPlugin(); const plugins: [string, Connection][] = [["sim://", simulator]];