mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: same name chunk case
This commit is contained in:
parent
267953b82b
commit
d6855e2236
@ -62,10 +62,12 @@ export default class Builder implements ICodeBuilder {
|
||||
}
|
||||
|
||||
unprocessedChunks.splice(indexToRemove, 1);
|
||||
unprocessedChunks.forEach(
|
||||
// remove the processed chunk from all the linkAfter arrays from the remaining chunks
|
||||
ch => (ch.linkAfter = ch.linkAfter.filter(after => after !== name)),
|
||||
);
|
||||
if (!unprocessedChunks.some(ch => ch.name === name)) {
|
||||
unprocessedChunks.forEach(
|
||||
// remove the processed chunk from all the linkAfter arrays from the remaining chunks
|
||||
ch => (ch.linkAfter = ch.linkAfter.filter(after => after !== name)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return resultingString.join('\n');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user