[Vuejs]-Vue changing variable value on receiveing data from backend Laravel

0👍

thanks for trying to help me, i just figure what I was doing wrong and, it was stupid.
I’ve edited the question so you guys can have a better understand:
In the rowClass method, I have this line:

if (filtered.estMin = filtered.qnt) return 'table-warning'

I didn’t notice the ‘=’ sign, that’s why the estMin was aways with a different value so, I change the ‘=’ sign for ‘===’ and the problems were solved:

if (filtered.estMin === filtered.qnt) return 'table-warning'

Honestly, I don’t understand why exactly this method can be interfering with the other but, it is working.

Again, thank you all that have tried to help me.

Leave a comment