Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is creating a duplicate key error in the console. The duplicate records still appear in the completions list, but the console error persists. To replicate, open console and type 'bel' which generates a console error due to the word 'belt' being both a booru and a wildcard. #125

Open
GitWilburn opened this issue Jan 11, 2024 · 1 comment

Comments

@GitWilburn
Copy link
Contributor

if (x.type === 'booru') return paragraph.append($createBooruNode(x.tag))
if (x.type === 'lora') return paragraph.append($createLoraNode(x.loraDef))
if (x.type === 'wildcard') return paragraph.append($createWildcardNode(x.payload))
if (x.type === 'embedding') return paragraph.append($createEmbeddingNode(x.embeddingName))
if (x.type === 'user') return paragraph.append($createUserNode(x.tag))
if (x.type === 'action') return paragraph.append($createActionNode(x.tag, ''))
if (x.type === 'linebreak') return paragraph.append($createLineBreakNode())
if (x.type === 'text') return paragraph.append($createTextNode(x.text))
if (x.type === 'break') return paragraph.append($createBreakNode(x.breakType))

@GitWilburn
Copy link
Contributor Author

I tried a few things to fix this by making the keys unique and just couldn't figure it out.
image

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

No branches or pull requests

1 participant