Clearing sequence diagram before rendering

This commit is contained in:
Per Brolin 2023-02-15 14:17:46 +01:00
parent eed427b4ac
commit 0c38f20281
1 changed files with 3 additions and 0 deletions

View File

@ -631,6 +631,9 @@ function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoop
export const draw = function (_text: string, id: string, _version: string, diagObj: Diagram) {
const { securityLevel, sequence } = configApi.getConfig();
conf = sequence;
diagObj.db.clear();
// Parse the graph definition
diagObj.parser.parse(text);
// Handle root and Document for when rendering in sandbox mode
let sandboxElement;
if (securityLevel === 'sandbox') {