Skip to content

Fix list chain#1302

Merged
juliaroldi merged 5 commits intomasterfrom
u/juliaroldi/list-chain
Sep 29, 2022
Merged

Fix list chain#1302
juliaroldi merged 5 commits intomasterfrom
u/juliaroldi/list-chain

Conversation

@juliaroldi
Copy link
Contributor

If a list already exist on the editor and the triggers for start a new list (1), 1-, a., ...) is typed, there is no need to check if a list already exist. Just start a new list.

const listIndex = trigger[trigger.length - 2];

if (previousListChain) {
if (previousListChain && parseInt(listIndex) > 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parseInt(listIndex) is also used in line 124, so save the result to a local var.

@juliaroldi juliaroldi merged commit 15fd6c8 into master Sep 29, 2022
@JiuqingSong JiuqingSong deleted the u/juliaroldi/list-chain branch October 31, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants