From eb2d9351a0184a8f36e879442c1a24de515e9978 Mon Sep 17 00:00:00 2001 From: Ryan Fischbach Date: Wed, 6 Mar 2024 20:49:27 -0800 Subject: [PATCH] deconflict experiment. --- src/config/typeConfigs.ts | 3 +++ src/index.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/config/typeConfigs.ts b/src/config/typeConfigs.ts index 86f6b573..8e16ac54 100644 --- a/src/config/typeConfigs.ts +++ b/src/config/typeConfigs.ts @@ -164,6 +164,9 @@ export const DEFAULT_SCHEMES: Scheme[] = [ ]; //<*((==< export var SCHEMES: Scheme[] = DEFAULT_SCHEMES; +export const concatSCHEMES = (schemes: Scheme[]) => { + SCHEMES = SCHEMES.concat(schemes); +}; export const typeConfigList: Type[] = [ { diff --git a/src/index.js b/src/index.js index d3b0c9e3..3e5edc09 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,7 @@ import ReactDOM from 'react-dom'; import * as serviceWorker from './serviceWorker'; import { setHTTPTimeout } from 'external'; -import { SCHEMES } from './config/typeConfigs'; +import { concatSCHEMES } from './config/typeConfigs'; // bring in our temba-components if they aren't already registered var componentsExist = @@ -25,7 +25,7 @@ window.showFlowEditor = (ele, config) => { } //<*((==< if (Array.isArray(config.schemes)) { - SCHEMES = SCHEMES.concat(config.schemes); + concatSCHEMES(config.schemes); } ReactDOM.render(, ele);