Table Importing Added, UI updates
This commit is contained in:
@@ -34,6 +34,12 @@ export const chemicalsApi = {
|
||||
|
||||
remove: (id: string): Promise<void> =>
|
||||
apiFetch(`/api/chemicals/${id}`, { method: 'DELETE' }).then(() => undefined),
|
||||
|
||||
import: (rows: Partial<ChemicalInventory>[]): Promise<{ imported: number; errors: string[] }> =>
|
||||
apiFetch('/api/chemicals/import', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ rows }),
|
||||
}).then(r => r.json()),
|
||||
};
|
||||
|
||||
export const protocolsApi = {
|
||||
|
||||
Reference in New Issue
Block a user