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

nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git


The following commit(s) were added to refs/heads/main by this push:
     new ddb9d079 [Bugfix] Fix frontend coding formatting style (#319)
ddb9d079 is described below

commit ddb9d079aba85d137beab3e8166ca3a9f38b4e0d
Author: s7monk <[email protected]>
AuthorDate: Sat Jun 8 10:42:18 2024 +0800

    [Bugfix] Fix frontend coding formatting style (#319)
---
 paimon-web-ui/src/form-lib/cdc/use-submit-cdc-job.ts | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/paimon-web-ui/src/form-lib/cdc/use-submit-cdc-job.ts 
b/paimon-web-ui/src/form-lib/cdc/use-submit-cdc-job.ts
index ec86cad2..bd1cdb56 100644
--- a/paimon-web-ui/src/form-lib/cdc/use-submit-cdc-job.ts
+++ b/paimon-web-ui/src/form-lib/cdc/use-submit-cdc-job.ts
@@ -15,11 +15,11 @@ KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License. */
 
+import type { SelectOption } from 'naive-ui'
 import type { CdcJobSubmit } from '@/api/models/cdc'
 import { getClusterListByType } from '@/api/models/cluster'
 import type { Cluster } from '@/api/models/cluster/types'
 import type { IJsonItem } from '@/components/dynamic-form/types'
-import type { SelectOption } from 'naive-ui'
 
 export function useSumbitCdcJob(item: any) {
   const { t } = useLocaleHooks()
@@ -28,15 +28,16 @@ export function useSumbitCdcJob(item: any) {
     flinkSessionUrl: item.flinkSessionUrl,
   })
 
-  const flinkSessionClusterOptions =  ref<SelectOption[]>([])
-   getClusterListByType ('Flink', 1, Number.MAX_SAFE_INTEGER).then((response) 
=> {
+  const flinkSessionClusterOptions = ref<SelectOption[]>([])
+  getClusterListByType ('Flink', 1, Number.MAX_SAFE_INTEGER).then((response) 
=> {
     if (response && response.data) {
       const clusterList = response.data as Cluster[]
-       flinkSessionClusterOptions.value = clusterList.map(cluster => ({
+      flinkSessionClusterOptions.value = clusterList.map(cluster => ({
         label: cluster.clusterName,
         value: cluster.id.toString(),
       }))
-    }})
+    }
+  })
   return {
     json: [
       {

Reply via email to