We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cded11e + b555bcf commit cad39d7Copy full SHA for cad39d7
src/Frontend/src/components/messages2/SequenceDiagram/HandlersComponent.vue
@@ -29,7 +29,7 @@ const handlerItems = computed(() => {
29
const messageTypeElement = messageTypeRefs.value[index];
30
const count = handler.outMessages.length;
31
const height = (count === 0 ? 1 : count) * Height_Per_Out;
32
- if (nextY === 0) nextY += Handler_Gap + (Math.max(...endpointCentrePoints.value.map((cp) => cp.top)) ?? 0);
+ if (nextY === 0) nextY += Handler_Gap + Math.max(...[0, ...endpointCentrePoints.value.map((cp) => cp.top)]);
33
const y = nextY;
34
nextY += height + Handler_Gap;
35
const fill = (() => {
0 commit comments