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

[list-separator] TypeError when reading 'split' #117

Open
C-Ezra-M opened this issue Jul 9, 2024 · 2 comments
Open

[list-separator] TypeError when reading 'split' #117

C-Ezra-M opened this issue Jul 9, 2024 · 2 comments

Comments

@C-Ezra-M
Copy link

C-Ezra-M commented Jul 9, 2024

Somehow, this happened unexpectedly in a Mavo app I'm making. I used the codebase as if mavoweb/mavo#1025 was already merged, as Netlify is deploying it for use with a <script> tag.

mavo-list-separator.js:22 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
    at node-render-start (mavo-list-separator.js:22:70)
    at deps.js:2:1
    at Array.forEach (<anonymous>)
    at n.run (deps.js:2:1)
    at Collection.render (node.js:302:1)
    at Collection.<anonymous> (group.js:181:1)
    at Group.propagate (node.js:246:1)
    at Group.dataRender (group.js:162:1)
    at Group.render (node.js:344:1)
    at Mavo.render (mavo.js:356:1)
@DmitrySharabin
Copy link
Member

Hey there,

Thank you for reporting the bug. I’m planning to give it a closer look ASAP. Is there a chance you could share a piece of your code causing the bug, e.g., on Codepen? It would help us to narrow down the issue tremendously.

@C-Ezra-M
Copy link
Author

Somehow, that issue was caused by having incomplete initial data (i.e. all but one property were excluded). And unfortunately, I can't easily reproduce this bug since it's inconsistent. However, it does sometimes cause multiline input to be pasted twice.

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

2 participants