Editor not refreshing/redrawing after new row is inserted

Editor not refreshing/redrawing after new row is inserted

bsukbsuk Posts: 92Questions: 26Answers: 2

Is there anything I can do to debug this, or might anyone have an idea why this is happening?
If I edit a row, I can see the change reflecting instantly in the table.
However, if I add a new row, the table does not update until the page is refreshed. Everything else appears to be functioning normally..
There are no errors in the server log or displayed in the client console. After refreshing the page, everything appears as it should.

Answers

  • bsukbsuk Posts: 92Questions: 26Answers: 2
    edited March 2021

    Update - if I remove the "id" field from editor (primary key in the table), it works. However, I want to include the ID field in my Datatable.. Why would this cause an issue?

  • bsukbsuk Posts: 92Questions: 26Answers: 2

    Resolved it. Needed to do this to stop the auto-increment field from being written to.
    field::inst( 'id' )->set( false ),

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Excellent, thanks for reporting back,

    Colin

This discussion has been closed.