Skip to content

Commit

Permalink
[BugFix][Web]Fix the issue where the submitted job name remains uncha…
Browse files Browse the repository at this point in the history
…nged when renaming the job (#4022)

Co-authored-by: zackyoungh <[email protected]>
  • Loading branch information
zackyoungh and zackyoungh authored Dec 6, 2024
1 parent 75513e5 commit b58702f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,15 @@ export const SqlTask = memo((props: FlinkSqlProps & any) => {
setLoading(false);
}, []);

useEffect(() => {
setCurrentState((prevState) => ({
...prevState,
name: params.name,
note: params.note,
secondLevelOwners: params.secondLevelOwners,
firstLevelOwner: params.firstLevelOwner
}));
}, [params]);
useEffect(() => {
return subscribeTopic(Topic.TASK_RUN_INSTANCE, null, (data: SseData) => {
if (data?.data?.RunningTaskId) {
Expand Down
1 change: 0 additions & 1 deletion dinky-web/src/pages/DataStudio/Toolbar/Project/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import { SseData, Topic } from '@/models/UseWebSocketModel';

export const Project = (props: any) => {
const {
dispatch,
centerContent,
project: { expandKeys, selectedKeys },
action: { actionType, params },
Expand Down

0 comments on commit b58702f

Please sign in to comment.