Fix options
This commit is contained in:
@ -17,7 +17,6 @@ export async function createCommissionOption(input: unknown) {
|
|||||||
data: {
|
data: {
|
||||||
name: data.name,
|
name: data.name,
|
||||||
description: data.description?.trim() ? data.description : null,
|
description: data.description?.trim() ? data.description : null,
|
||||||
sortIndex: toInt(data.sortIndex),
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
revalidatePath(LIST_PATH);
|
revalidatePath(LIST_PATH);
|
||||||
@ -31,7 +30,6 @@ export async function updateCommissionOption(id: string, input: unknown) {
|
|||||||
data: {
|
data: {
|
||||||
name: data.name,
|
name: data.name,
|
||||||
description: data.description?.trim() ? data.description : null,
|
description: data.description?.trim() ? data.description : null,
|
||||||
sortIndex: toInt(data.sortIndex),
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
revalidatePath(LIST_PATH);
|
revalidatePath(LIST_PATH);
|
||||||
|
|||||||
Reference in New Issue
Block a user