Unverified Commit 1dd5e07b authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Fix] Fix console unable to close when selecting UDF type job (#3257)

parent d94b01b5
......@@ -207,9 +207,9 @@ export function getRightSelectKeyFromNodeClickJobType(jobType: string): string {
}
export function getBottomSelectKeyFromNodeClickJobType(jobType: string): string {
return isFlinkJob(jobType) || isSql(jobType)
? LeftBottomKey.CONSOLE_KEY
: isUDF(jobType) || jobType.toLowerCase() === DIALECT.FLINKSQLENV
? LeftBottomKey.TOOLS_KEY
: LeftBottomKey.TOOLS_KEY;
if (isFlinkJob(jobType) || isSql(jobType)) {
return LeftBottomKey.CONSOLE_KEY;
} else {
return LeftBottomKey.TOOLS_KEY;
}
}
......@@ -143,7 +143,7 @@ const Project: React.FC = (props: connect) => {
payload: getRightSelectKeyFromNodeClickJobType(type)
});
const bottomKey = getBottomSelectKeyFromNodeClickJobType(type);
dispatch({ type: STUDIO_MODEL.updateSelectBottomKey, payload: bottomKey });
if (bottomKey === LeftBottomKey.TOOLS_KEY) {
dispatch({
type: STUDIO_MODEL.updateSelectBottomSubKey,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment