Skip to content

Commit fc1f1b1

Browse files
committed
fix: remove redundant code in TasksPreviewTable component
1 parent de31e4e commit fc1f1b1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/modules/tasks/TasksPreviewTable.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,14 @@ import { tasksQuery } from './tasksQuery';
1212
import { columns } from './tasksTable/columns';
1313

1414
export function TasksPreviewTable({ className }: { className?: string }) {
15-
const { chainId } = useUserStore();
1615
const { chainId } = useUserStore();
1716
const tasks = useQuery({
18-
queryKey: [chainId, 'tasks_preview'],
1917
queryKey: [chainId, 'tasks_preview'],
2018
queryFn: () =>
2119
execute(tasksQuery, chainId, {
2220
length: PREVIEW_TABLE_LENGTH,
2321
skip: 0,
2422
}),
25-
execute(tasksQuery, chainId, {
26-
length: PREVIEW_TABLE_LENGTH,
27-
skip: 0,
28-
}),
2923
refetchInterval: PREVIEW_TABLE_REFETCH_INTERVAL,
3024
enabled: !!chainId,
3125
});
@@ -51,7 +45,6 @@ export function TasksPreviewTable({ className }: { className?: string }) {
5145
</h2>
5246
<Button variant="link" className="-mr-4" asChild>
5347
<ChainLink to="/tasks">View all</ChainLink>
54-
<ChainLink to="/tasks">View all</ChainLink>
5548
</Button>
5649
</div>
5750
{(tasks.isError || tasks.errorUpdateCount > 0) && !tasks.data ? (

0 commit comments

Comments
 (0)