Add function to update product option names
This commit introduces a new async function, `set.name`, to update the name of product options via the appropriate API endpoint. This improves the flexibility of modifying product option properties.
This commit is contained in:
@@ -94,6 +94,14 @@ export const getProductOptions = async (id) => {
|
||||
);
|
||||
},
|
||||
set: {
|
||||
name: async (id, name) => {
|
||||
return ObjectsGlobal.set.column(
|
||||
ProductOptions.meta.endpoint,
|
||||
id,
|
||||
"name",
|
||||
name
|
||||
)
|
||||
},
|
||||
product_id: async (id, product_id) => {
|
||||
return ObjectsGlobal.set.column(
|
||||
ProductOptions.meta.endpoint,
|
||||
|
||||
Reference in New Issue
Block a user