Saving an empty description in kanban view break UI

Hello,

When I go to kanban view and edit a task, if I click “Save” without typing anything in the Description field it disappears. I’m then unable to close the task and have to refresh the page.

I see these errors in the console :

runtime-core.esm-bundler.js:226 TypeError: Cannot read properties of null (reading 'insertBefore')
    at insert (runtime-dom.esm-bundler.js:10:12)
    at Oe (runtime-core.esm-bundler.js:5189:7)
    at xe (runtime-core.esm-bundler.js:5092:28)
    at je (runtime-core.esm-bundler.js:5515:7)
    at Re (runtime-core.esm-bundler.js:5407:7)
    at Be (runtime-core.esm-bundler.js:5255:7)
    at xe (runtime-core.esm-bundler.js:5116:11)
    at ReactiveEffect.Kt [as fn] (runtime-core.esm-bundler.js:5861:9)
    at ReactiveEffect.run (reactivity.esm-bundler.js:178:19)
    at Ge.Xe.update (runtime-core.esm-bundler.js:5902:51)
runtime-core.esm-bundler.js:226 TypeError: Cannot destructure property 'bum' of 'Xe' as it is null.
    at En (runtime-core.esm-bundler.js:6375:13)
    at fn (runtime-core.esm-bundler.js:6283:24)
    at gn (runtime-core.esm-bundler.js:6402:7)
    at fn (runtime-core.esm-bundler.js:6303:9)
    at En (runtime-core.esm-bundler.js:6382:15)
    at fn (runtime-core.esm-bundler.js:6283:24)
    at En (runtime-core.esm-bundler.js:6382:15)
    at fn (runtime-core.esm-bundler.js:6283:24)
    at gn (runtime-core.esm-bundler.js:6402:7)
    at fn (runtime-core.esm-bundler.js:6303:9)

I’m on a fresh install of 0.22.0, same issue on chromium and firefox.

Can you reproduce this on try?

Yes I just tried and same issue.

  • I created a new task
  • opened it from the kanban view
  • clicked “save” without typing anything in the description

And then I’m stuck and can’t close the task editing window without refreshing the page.

The first console error appears when I click save, the other when I try to close.

There is no problem if I try to type anything before clicking save, only if I click the button without using the text field before.

(There is no reason to click save without editing description, but since I was using it for the first time I thought the button was to save all modifications, not just description… so it’s mainly an issue for confused new users)

Definitely looks like a bug. Will take a look.

Should be fixed in 5a25685d53. Please check with the next unstable build (ready in ~30min) as a release artifact and on try.

Looks good, thanks for your work!