upd
This commit is contained in:
@@ -114,6 +114,10 @@ export function useItems() {
|
||||
await Promise.all([fetchLeft(true), fetchRight(true)])
|
||||
}
|
||||
|
||||
async function addItemByValue(value: string): Promise<{ id: number; value: string }> {
|
||||
return await client.api.itemsAddValueCreate({ value })
|
||||
}
|
||||
|
||||
return {
|
||||
leftItems,
|
||||
leftItemsTotal,
|
||||
@@ -131,5 +135,6 @@ export function useItems() {
|
||||
deselectItem,
|
||||
reorderItem,
|
||||
addItem,
|
||||
addItemByValue,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user