Client side session object not editable on first load

Reproduce:
Create an object for a client-side session in a Node project:

CleanShot 2023-02-28 at 00.26.01

Create a button and an on click action to set a session variable.
Select your session object:
CleanShot 2023-02-28 at 00.27.11

It won’t let you enter the object details. So it forces you to add some value and close the modal.
CleanShot 2023-02-28 at 00.28.01

This will generate the code:

dmx-on:click="sessionDashboard.set('current_domain','myvalue')"

Now edit the on-click event. It lets you edit the object:

But it keeps the old value in the code, which is invalid:

dmx-on:click="sessionDashboard.set('current_domain',{: 'myvalue', id: 123, url: 'myurl'})"