WIP Наладила таймер

This commit is contained in:
Daria Golova
2022-12-02 15:15:56 +03:00
parent 469961a05b
commit 1db2ca2113
3 changed files with 15 additions and 8 deletions

View File

@@ -93,8 +93,10 @@ export default {
},
methods: {
updateDataClient() {
if (this.dataClients.length === 1) this.currentTablePage -= 1;
else this.fetchDataClients();
if (this.dataClients.find(({ id }) => id === this.deletedRowId)) {
if (this.dataClients.length === 1) this.currentTablePage -= 1;
else this.fetchDataClients();
}
},
saveDataClients(data) {
this.dataClients = data.results;