mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-09 17:19:45 +02:00
Fix: array concat
This commit is contained in:
@@ -219,7 +219,8 @@ export const addNote = function (actor, placement, message) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Coerce actor into a [to, from, ...] array
|
// Coerce actor into a [to, from, ...] array
|
||||||
const actors = [actor, actor];
|
// eslint-disable-next-line unicorn/prefer-spread
|
||||||
|
const actors = [].concat(actor, actor);
|
||||||
|
|
||||||
notes.push(note);
|
notes.push(note);
|
||||||
messages.push({
|
messages.push({
|
||||||
|
Reference in New Issue
Block a user