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