F
F
Floydreme2021-11-17 01:02:54
Vue.js
Floydreme, 2021-11-17 01:02:54

How to update table component in vue js?

I have a table with date filters ( it's a panel with 4 choices: day/week/month/year ). After selecting a filter with a specific date range, I get the data from the API and store the response in the vuex store. I logged everything - fetch and vuex work fine. But when I start changing filters, the data in the table is not updated properly - the entries for the old filters are displayed. Tried a lot: using a computed property, a special counter, etc. I probably did something wrong :( How can I solve my problem? Thank you.

Table:


Filters:


Method call:

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Floydreme, 2021-11-17
@FloydReme

Solved the problem, I was missing undefined validation inside the table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question