From 10d82c9fbe003b72879c3ea77abef69c96b74641 Mon Sep 17 00:00:00 2001 From: Amanpal Singh <87360222+aman-alfresco@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:08:55 +0530 Subject: [PATCH] code optimized --- .../com/alfresco/content/process/ui/components/InputField.kt | 2 -- .../alfresco/content/process/ui/components/IntegerInputField.kt | 1 - 2 files changed, 3 deletions(-) diff --git a/process-app/src/main/kotlin/com/alfresco/content/process/ui/components/InputField.kt b/process-app/src/main/kotlin/com/alfresco/content/process/ui/components/InputField.kt index c43d080d..1036c09c 100644 --- a/process-app/src/main/kotlin/com/alfresco/content/process/ui/components/InputField.kt +++ b/process-app/src/main/kotlin/com/alfresco/content/process/ui/components/InputField.kt @@ -85,7 +85,6 @@ fun InputField( } } - OutlinedTextField( colors = customTextFieldColors, value = textFieldValue ?: "", // Initial value of the text field @@ -207,7 +206,6 @@ fun InputFieldWithLeading( } } - OutlinedTextField( colors = customTextFieldColors, value = textFieldValue ?: "", // Initial value of the text field diff --git a/process-app/src/main/kotlin/com/alfresco/content/process/ui/components/IntegerInputField.kt b/process-app/src/main/kotlin/com/alfresco/content/process/ui/components/IntegerInputField.kt index 9fe3d5f1..3f214f33 100644 --- a/process-app/src/main/kotlin/com/alfresco/content/process/ui/components/IntegerInputField.kt +++ b/process-app/src/main/kotlin/com/alfresco/content/process/ui/components/IntegerInputField.kt @@ -24,7 +24,6 @@ fun IntegerInputField( var errorMessage = "" if (!textFieldValue.isNullOrEmpty()) { - val minValue = fieldsData.minValue?.toInt() ?: 0 val maxValue = fieldsData.maxValue?.toInt() ?: 0