|
|
|
|
@ -692,7 +692,7 @@ const getNodeApiIns = (nodeId: string, nodeConfig: any, currentProjectCompData:
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
const comp = currentProjectCompData.filter(item => {
|
|
|
|
|
return (item.id || item?.comp?.id) === nodeConfig?.component?.compId;
|
|
|
|
|
return (item.identifier || item?.comp?.identifier) === nodeConfig?.component?.compIdentifier;
|
|
|
|
|
});
|
|
|
|
|
if (comp && comp.length > 0) {
|
|
|
|
|
const apiIns = comp[0]?.def?.apis || comp[0]?.comp?.def?.apis || [];
|
|
|
|
|
@ -787,7 +787,7 @@ const getNodeApiOuts = (nodeId: string, nodeConfig: any, currentProjectCompData:
|
|
|
|
|
return [{ name: 'done', desc: '', dataType: '', defaultValue: '' }];
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
const comp = currentProjectCompData.filter(item => item.id === nodeConfig?.component?.compId);
|
|
|
|
|
const comp = currentProjectCompData.filter(item => item.identifier === nodeConfig?.component?.compIdentifier);
|
|
|
|
|
if (comp && comp.length > 0) {
|
|
|
|
|
return [{
|
|
|
|
|
...comp[0].def?.apiOut,
|
|
|
|
|
|