Skip to content

Commit d4a0056

Browse files
authored
Merge pull request #963 from senithkay/fix-expression-editor-value-reset
Fix when removing all the values in the expression editor causes the …
2 parents 73c0bee + eacca62 commit d4a0056

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

workspaces/ballerina/ballerina-side-panel/src/components/editors/ExpressionEditor.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,6 @@ export const ExpressionEditor = (props: ExpressionEditorProps) => {
636636
ariaLabel={field.label}
637637
placeholder={placeholder}
638638
onChange={async (updatedValue: string, updatedCursorPosition: number) => {
639-
if (updatedValue === value) {
640-
return;
641-
}
642639

643640
// clear field diagnostics
644641
setFormDiagnostics([]);
@@ -707,9 +704,6 @@ export const ExpressionEditor = (props: ExpressionEditorProps) => {
707704
field={field}
708705
value={watch(key)}
709706
onChange={async (updatedValue: string, updatedCursorPosition: number) => {
710-
if (updatedValue === value) {
711-
return;
712-
}
713707

714708
// clear field diagnostics
715709
setFormDiagnostics([]);

0 commit comments

Comments
 (0)