Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
1dd5e07b
Unverified
Commit
1dd5e07b
authored
Mar 07, 2024
by
Zzm0809
Committed by
GitHub
Mar 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix] Fix console unable to close when selecting UDF type job (#3257)
Co-authored-by:
Zzm0809
<
Zzm0809@users.noreply.github.com
>
parent
d94b01b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
function.tsx
...b/src/pages/DataStudio/LeftContainer/Project/function.tsx
+5
-5
index.tsx
...-web/src/pages/DataStudio/LeftContainer/Project/index.tsx
+1
-1
No files found.
dinky-web/src/pages/DataStudio/LeftContainer/Project/function.tsx
View file @
1dd5e07b
...
@@ -207,9 +207,9 @@ export function getRightSelectKeyFromNodeClickJobType(jobType: string): string {
...
@@ -207,9 +207,9 @@ export function getRightSelectKeyFromNodeClickJobType(jobType: string): string {
}
}
export
function
getBottomSelectKeyFromNodeClickJobType
(
jobType
:
string
):
string
{
export
function
getBottomSelectKeyFromNodeClickJobType
(
jobType
:
string
):
string
{
return
isFlinkJob
(
jobType
)
||
isSql
(
jobType
)
if
(
isFlinkJob
(
jobType
)
||
isSql
(
jobType
))
{
?
LeftBottomKey
.
CONSOLE_KEY
return
LeftBottomKey
.
CONSOLE_KEY
;
:
isUDF
(
jobType
)
||
jobType
.
toLowerCase
()
===
DIALECT
.
FLINKSQLENV
}
else
{
?
LeftBottomKey
.
TOOLS_KEY
return
LeftBottomKey
.
TOOLS_KEY
;
:
LeftBottomKey
.
TOOLS_KEY
;
}
}
}
dinky-web/src/pages/DataStudio/LeftContainer/Project/index.tsx
View file @
1dd5e07b
...
@@ -143,7 +143,7 @@ const Project: React.FC = (props: connect) => {
...
@@ -143,7 +143,7 @@ const Project: React.FC = (props: connect) => {
payload
:
getRightSelectKeyFromNodeClickJobType
(
type
)
payload
:
getRightSelectKeyFromNodeClickJobType
(
type
)
});
});
const
bottomKey
=
getBottomSelectKeyFromNodeClickJobType
(
type
);
const
bottomKey
=
getBottomSelectKeyFromNodeClickJobType
(
type
);
dispatch
({
type
:
STUDIO_MODEL
.
updateSelectBottomKey
,
payload
:
bottomKey
});
if
(
bottomKey
===
LeftBottomKey
.
TOOLS_KEY
)
{
if
(
bottomKey
===
LeftBottomKey
.
TOOLS_KEY
)
{
dispatch
({
dispatch
({
type
:
STUDIO_MODEL
.
updateSelectBottomSubKey
,
type
:
STUDIO_MODEL
.
updateSelectBottomSubKey
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment