Fix persisting client changes. Fix persisting team changes. Fix validating vat of 0.

This commit is contained in:
HenriT
2021-02-16 22:09:59 +02:00
parent b291455a05
commit 5cf166ca12
4 changed files with 6 additions and 12 deletions

View File

@ -50,11 +50,9 @@ export default {
await dispatch('clientProps', props);
return ClientService.updateClient(getters.client);
},
async updateClientById(payload) {
const client = await Client.update({
where: payload.clientId,
data: payload.props,
});
async updateClientById(store, payload) {
const client = Client.find(payload.clientId);
client.$update(payload.props);
return ClientService.updateClient(client);
},
async openNewClientModal({ commit }) {