[BUG]TypeError: Cannot read properties of undefined (reading 'settings')
at re insert table in version ^9.0.0
#375
Labels
bug
Something isn't working
Describe the bug
I get an error when re-displaying a table with the following steps.
insert
destroy
insert
error occurs
How to reproduce
I have created a StackBlitz here: https://stackblitz.com/edit/daisyui-vue-vite-wxwb7r?file=package.json,src%2FApp.vue to reproduce this issue.
Steps to reproduce the behavior
npm install && npm run dev
in a terminal (if it does not run automatically)UPDATE-TABLE
on the screen that appears.The table will be displayed.
UPDATE-TABLE
again.Now you will get an error in the console (
TypeError: Cannot read properties of undefined (reading 'settings')
).View errors
Expected behavior
Each time you click
UPDATE-TABLE
, you expect to see the table redraw without error and the counter for no table change.Other Situations
I have confirmed that the version
^8.0.1
installed bynpm i simple-datatable@8
does not generate any errors.The text was updated successfully, but these errors were encountered: