From beef5458bfdac30efc55dc772d2f044f52fd444f Mon Sep 17 00:00:00 2001 From: Elayaraman Date: Thu, 4 Apr 2024 17:45:22 +0530 Subject: [PATCH] Update field-editor.tsx --- .../form-builder/components/field-editor.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/crayons-extended/custom-objects/src/components/form-builder/components/field-editor.tsx b/packages/crayons-extended/custom-objects/src/components/form-builder/components/field-editor.tsx index 8d7a51666..8581cb2f4 100644 --- a/packages/crayons-extended/custom-objects/src/components/form-builder/components/field-editor.tsx +++ b/packages/crayons-extended/custom-objects/src/components/form-builder/components/field-editor.tsx @@ -23,22 +23,22 @@ import { deriveInternalNameFromLabel, getChildChoices, getDependentLevels, + getFieldBasedOnLevel, getMaxLimitProperty, getMaximumLimitsConfig, + getModifiedEl, getNestedKeyValueFromObject, hasCustomProperty, hasPermission, hasStringDuplicates, i18nText, removeFirstOccurrence, + removeIsNewFromField, updateChoicesInFields, updateFieldAttributes, updateLevelSelection, updateRequiredOnAllFields, validateLevels, - getFieldBasedOnLevel, - getModifiedEl, - removeIsNewFromField, } from '../utils/form-builder-utils'; @Component({ @@ -1364,14 +1364,16 @@ export class FieldEditor { > - {dataItem?.choice_options?.resolution_timer !== undefined && + {isSlaEnabled && + dataItem?.choice_options?.resolution_timer !== undefined && renderToggle( dataItem.id, 'resolution_timer', dataItem.choice_options.resolution_timer )} - {dataItem?.choice_options?.pause_resolution_sla_timer !== - undefined && + {isSlaEnabled && + dataItem?.choice_options?.pause_resolution_sla_timer !== + undefined && renderToggle( dataItem.id, 'pause_resolution_sla_timer',