cast selector to RemoteQueryFilters
This commit is contained in:
1 file changed
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
FilterableStockLocationProps,
|
FilterableStockLocationProps,
|
||||||
|
RemoteQueryFilters,
|
||||||
StockLocationDTO,
|
StockLocationDTO,
|
||||||
UpdateStockLocationInput,
|
UpdateStockLocationInput,
|
||||||
UpsertStockLocationAddressInput,
|
UpsertStockLocationAddressInput,
|
||||||
@@ -60,7 +61,7 @@ export const updateStockLocationsWorkflow = createWorkflow(
|
|||||||
): WorkflowResponse<StockLocationDTO[]> => {
|
): WorkflowResponse<StockLocationDTO[]> => {
|
||||||
const stockLocationsQuery = useQueryGraphStep({
|
const stockLocationsQuery = useQueryGraphStep({
|
||||||
entity: "stock_location",
|
entity: "stock_location",
|
||||||
filters: input.selector,
|
filters: input.selector as RemoteQueryFilters<"stock_location">,
|
||||||
fields: ["id", "address.id"],
|
fields: ["id", "address.id"],
|
||||||
}).config({ name: "get-stock-location" })
|
}).config({ name: "get-stock-location" })
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user