Refresh Page
This commit is contained in:
@@ -56,7 +56,7 @@ export class Subcategory {
|
||||
async create(data) {
|
||||
try {
|
||||
const response = await http.post('/product/sub-categories').send(data);
|
||||
await this.getData();
|
||||
//await this.getData();
|
||||
return response;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
@@ -66,7 +66,7 @@ export class Subcategory {
|
||||
async update(id, data) {
|
||||
try {
|
||||
const response = await http.put(`/product/sub-categories/${id}`).send(data);
|
||||
await this.getData();
|
||||
//await this.getData();
|
||||
return response;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
||||
Reference in New Issue
Block a user