Skip to content

[Bug] Queries runs before the value of table's selected row changes #308

@agolosnichenko

Description

@agolosnichenko

There is a bug in Table component, here is an example:

  1. In Table I have custom column of Links type, f.e with Modify and Delete links
  2. Delete action runs simple SQL-query like "DELETE FROM some_table WHERE id = {{table1.selectedRow.id}}"

The problem is that the query runs before the value of selectedRow changes and this potentially results in user deleting the wrong record (check the attached screencast).

The solution is to fix the logic so that queries should be executed only after all table's promises are resolved

Screen.Recording.2023-03-13.at.02.48.06.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions