Unable to edit tables

Can somebody help me out to fix this issue, please?

Uncaught TypeError: Cannot read properties of null (reading 'length')
    at c.buildUpdatedPost (spreadsheet-editor.js:151:23)
    at c.updateTable (spreadsheet-editor.js:167:31)
    at c.insertTable (spreadsheet-editor.js:79:21)
    at q._run (index.ts:665:23)
    at q._join (index.ts:640:19)
    at q.join (index.ts:362:17)
    at p (index.js:157:1)
    at index.js:708:1
    at a (index.js:128:1)
    at index.js:707:1
    at index.js:666:1
    at m._triggerAction (d-button.js:172:1)
    at m.click (d-button.js:136:1)

I’m unable to edit any tables on Discourse.

2 Likes

can you try safe mode? nevermind, the table builder is a theme component. :thinking:

i cannot reproduce this on my forum - i just edited a table in Safari and Chrome.

here is a test table on Meta

Column 1 Column 2 Column 3 Column 4
1 A x hello
2 B y world
3 C z meow
4 D az woof
5 E bz tweet

also successfully edited the above table here on Meta

theme component is up to date too. hmmm maybe trying re-installing it? also make sure your Discourse instance is up to date if you haven’t already.

2 Likes

Hey @Festinger it would really help us if you could add some steps to repro this, e.g. your table but with obfuscated data

Thanks for your comment here @Lilly – I just checked the issue in further detail and noticed some weird behavior going on, please check my comment below.

Thanks for your comment and help, @nat.

I created a video cast of this where you can see the issue. I found out that the combination between SHIFT + U will occur in a hard refresh of the table editor popup and redirect to the index of the forum.

Please check this video cast:
https://www.awesomescreenshot.com/video/19058179?key=23593340b195cb20b82391d467df9083

I hope this helps. :slight_smile: