Skip to content

Commit 2b1b93d

Browse files
committed
fix for breaking deployment template
1 parent c59e677 commit 2b1b93d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/deploymentConfig/DeploymentTemplateView/DeploymentTemplateEditorView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,15 @@ const DeploymentTemplateEditorView = ({
315315
const valueLHS = isIdMatch ? defaultValue : source[selectedOptionId] // fetch LHS data from respective cache store
316316

317317
// final value for LHS
318-
let lhs = convertVariables ? resolvedValuesLHS : valueLHS
318+
let lhs = (convertVariables ? resolvedValuesLHS : valueLHS) ?? ''
319319

320320
// choose RHS value for comparison
321321
const shouldUseDraftData = state.selectedTabIndex !== 3 && showDraftData
322322
const selectedData = isValues ? state.tempFormData || state.draftValues : draftManifestData
323323
const valueRHS = shouldUseDraftData ? selectedData : value
324324

325325
// final value for RHS
326-
let rhs = convertVariables ? resolvedValuesRHS : valueRHS
326+
let rhs = (convertVariables ? resolvedValuesRHS : valueRHS) ?? ''
327327
if (getLockFilteredTemplate && isValues) {
328328
try {
329329
const { updatedLHS, updatedRHS } = getLockFilteredTemplate({

0 commit comments

Comments
 (0)