fix(dashboard): create SO modal (#8167)

This commit is contained in:
Frane Polić
2024-07-17 14:16:13 +02:00
committed by GitHub
parent d7e79cfa94
commit e5c66fa670

View File

@@ -21,7 +21,7 @@ export function LocationServiceZoneShippingOptionCreate() {
?.find((f) => f.id === fset_id)
?.service_zones?.find((z) => z.id === zone_id)
if (!zone) {
if (!isPending && !zone) {
throw json(
{ message: `Service zone with ID ${zone_id} was not found` },
404