From fb319cd2f15c02757f8dde3679d8da738c106f20 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 23 May 2022 10:36:37 +0100 Subject: [PATCH] attempt ignoring error --- app/src/api/services/domainLogic/processBuildingUpdate.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/api/services/domainLogic/processBuildingUpdate.ts b/app/src/api/services/domainLogic/processBuildingUpdate.ts index 2169c793..d181f59f 100644 --- a/app/src/api/services/domainLogic/processBuildingUpdate.ts +++ b/app/src/api/services/domainLogic/processBuildingUpdate.ts @@ -36,7 +36,10 @@ async function processCurrentLandUseClassifications( if(error instanceof ArgumentError && error.argumentName === 'landUseUpdate') { error.argumentName = 'buildingUpdate'; } - throw error; + if(error instanceof TypeError && error.argumentName === 'landUseGroupUpdate') { + } else { + throw error; + } } }