fix(typesContext.tsx): prevent wrong overwriting of component template by a group of the same type

refactor(reactflowUtils.ts): remove unused code that was causing a syntax error
This commit is contained in:
anovazzi1 2023-10-16 17:02:37 -03:00
commit cba92c10b4
3 changed files with 8 additions and 8 deletions

View file

@ -5236,9 +5236,9 @@
} }
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.4.554", "version": "1.4.555",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.554.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.555.tgz",
"integrity": "sha512-Q0umzPJjfBrrj8unkONTgbKQXzXRrH7sVV7D9ea2yBV3Oaogz991yhbpfvo2LMNkJItmruXTEzVpP9cp7vaIiQ==" "integrity": "sha512-k1wGC7UXDTyCWcONkEMRG/w6Jvrxi+SVEU+IeqUKUKjv2lGJ1b+jf1mqrloyxVTG5WYYjNQ+F6+Cb1fGrLvNcA=="
}, },
"node_modules/emoji-regex": { "node_modules/emoji-regex": {
"version": "8.0.0", "version": "8.0.0",
@ -14749,9 +14749,9 @@
} }
}, },
"electron-to-chromium": { "electron-to-chromium": {
"version": "1.4.554", "version": "1.4.555",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.554.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.555.tgz",
"integrity": "sha512-Q0umzPJjfBrrj8unkONTgbKQXzXRrH7sVV7D9ea2yBV3Oaogz991yhbpfvo2LMNkJItmruXTEzVpP9cp7vaIiQ==" "integrity": "sha512-k1wGC7UXDTyCWcONkEMRG/w6Jvrxi+SVEU+IeqUKUKjv2lGJ1b+jf1mqrloyxVTG5WYYjNQ+F6+Cb1fGrLvNcA=="
}, },
"emoji-regex": { "emoji-regex": {
"version": "8.0.0", "version": "8.0.0",

View file

@ -85,7 +85,8 @@ export function TypesProvider({ children }: { children: ReactNode }) {
setTemplates( setTemplates(
Object.keys(data).reduce((acc, curr) => { Object.keys(data).reduce((acc, curr) => {
Object.keys(data[curr]).forEach((c: keyof APIKindType) => { Object.keys(data[curr]).forEach((c: keyof APIKindType) => {
acc[c] = data[curr][c]; //prevent wrong overwriting of the component template by a group of the same type
if (!data[curr][c].flow) acc[c] = data[curr][c];
}); });
return acc; return acc;
}, {}) }, {})

View file

@ -703,7 +703,6 @@ function isHandleConnected(
/* /*
this function receives a flow and a handleId and check if there is a connection with this handle this function receives a flow and a handleId and check if there is a connection with this handle
*/ */
scapedJSONStringfy({ type: field.type, fieldName: key, id: nodeId });
if (field.proxy) { if (field.proxy) {
if ( if (
edges.some( edges.some(