refactor(dashboard): refresh domains (#7087)
This commit is contained in:
@@ -12,12 +12,12 @@ export const deleteStockLocationsStep = createStep(
|
||||
|
||||
return new StepResponse(void 0, input)
|
||||
},
|
||||
async (deletedLocaitonIds, { container }) => {
|
||||
if (!deletedLocaitonIds?.length) {
|
||||
async (deletedLocationIds, { container }) => {
|
||||
if (!deletedLocationIds?.length) {
|
||||
return
|
||||
}
|
||||
const service = container.resolve(ModuleRegistrationName.STOCK_LOCATION)
|
||||
|
||||
await service.restore(deletedLocaitonIds)
|
||||
await service.restore(deletedLocationIds)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user