79239131

Date: 2024-11-30 08:52:47
Score: 1.5
Natty:
Report link

Why did you make a table with a construction from columns, and not from rows? All you had to do was pass the emit('delete', row.id). And in the parent component, where you store the rawTable reactive data, delete the row by index.

In your case, you need to delete data from the roleColumn, and you will have to go through all the columns and remove the row whose ID you pass. Since the data is reactive, there will be no need to refresh the page, and everything will be updated immediately.

Reasons:
  • Whitelisted phrase (-1): In your case
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why did you
  • Low reputation (1):
Posted by: Mentat_Radnor