We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b79191e commit cdca63dCopy full SHA for cdca63d
packages/mermaid/src/diagrams/state/dataFetcher.js
@@ -198,10 +198,10 @@ export const dataFetcher = (
198
199
if (itemId !== 'root') {
200
let shape = SHAPE_STATE;
201
+ // The if === true / false can be removed if we can guarantee that the parsedItem.start is always a boolean
202
if (parsedItem.start === true) {
203
shape = SHAPE_START;
- }
204
- if (parsedItem.start === false) {
+ } else if (parsedItem.start === false) {
205
shape = SHAPE_END;
206
}
207
if (parsedItem.type !== DEFAULT_STATE_TYPE) {
0 commit comments