enso-ui / tables

Tables
MIT License
11 stars 10 forks source link

Uncaught (in promise) TypeError: this.template.columns is undefined #38

Open robbykrlos opened 2 years ago

robbykrlos commented 2 years ago

This is a bug.

Prerequisites

Hi,

There is a general problem with the tables (initially thought it's related to enums) - something about the timings of the fetch data we assume.

This is the error: image

And it can be simulated in several ways:

  1. On your side - https://www.laravel-enso.com/administration/XXXX - click rapidly ( as fast as you say out loud, normally, click click click :) ) on the Administration menus - I start from Users -> User Groups -> .... -> Teams.

  2. On our side we have some second tables that open when a clickable column cell is clicked on the first table. The same thing happens, when multiple initTable + tableData are triggered, we get the same error.

We tried an initial investigation and played a bit with $nextTink and _debounce, but I feel that this is not the right solution. (A debounce of 500ms on click will avoid the issue).

Investigation is still ongoing on our side. If you have some ideas/fixes would be great.

Thanks!