You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2023/04/08 01:10:15 UTC

[incubator-streampark] branch dev updated: [Fix] The value displayed in the input box is incorrect (#2587)

This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev by this push:
     new f99478241 [Fix] The value displayed in the input box is incorrect (#2587)
f99478241 is described below

commit f99478241eaab9fe49a76fc76b1ab9d7a7b7c7b8
Author: totoro <zh...@foxmail.com>
AuthorDate: Sat Apr 8 09:10:09 2023 +0800

    [Fix] The value displayed in the input box is incorrect (#2587)
---
 .../streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts b/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts
index 16c754312..1fce46a00 100644
--- a/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts
+++ b/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts
@@ -75,11 +75,11 @@ export const useEdit = () => {
         } else {
           if (k.startsWith('jobmanager.memory.')) {
             memoryItems.jmMemoryItems.push(key);
-            fieldValueOptions.jmOptionsItem[key] = parseInt(v);
+            fieldValueOptions.jmOptionsItem[key] = parseFloat(v);
           }
           if (k.startsWith('taskmanager.memory.')) {
             memoryItems.tmMemoryItems.push(key);
-            fieldValueOptions.tmOptionsItem[key] = parseInt(v);
+            fieldValueOptions.tmOptionsItem[key] = parseFloat(v);
           }
         }
       } else {