Skip to content

Commit 90bb092

Browse files
committed
refactor: update condition for showing rebuild in MergeTableCache component to exclude initial_sync task type
1 parent 2b80d4c commit 90bb092

File tree

1 file changed

+2
-1
lines changed
  • packages/dag/src/components/form/merge-table-cache

1 file changed

+2
-1
lines changed

packages/dag/src/components/form/merge-table-cache/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ export const MergeTableCache = defineComponent({
114114

115115
const showRebuild = reactiveComputed(() => {
116116
return (
117-
(task.type === 'cdc' || !!task.attrs?.syncProgress) && !disabled.value
117+
(task.type !== 'initial_sync' || !!task.attrs?.syncProgress) &&
118+
!disabled.value
118119
)
119120
})
120121

0 commit comments

Comments
 (0)