Skip to content

Commit

Permalink
deconflict experiment.
Browse files Browse the repository at this point in the history
  • Loading branch information
baracudda committed Mar 7, 2024
1 parent 7cc8a7c commit eb2d935
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/config/typeConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
{
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -25,7 +25,7 @@ window.showFlowEditor = (ele, config) => {
}
//<*((==<
if (Array.isArray(config.schemes)) {
SCHEMES = SCHEMES.concat(config.schemes);
concatSCHEMES(config.schemes);
}

ReactDOM.render(<FlowEditor config={config} />, ele);
Expand Down

0 comments on commit eb2d935

Please sign in to comment.