Skip to content

Commit 3cdfca7

Browse files
committed
refactor: remove unused useModule import and clean up pollingInterval comment
1 parent 0a59a17 commit 3cdfca7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/pages/Plan/modules/Factory/modules/Tasks/Component/parts/CreateTaskListsWithAI.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ import {
1515
useGetServicesApiKJobsByJobIdQuery,
1616
usePostServicesApiKUsecasesMutation,
1717
} from 'src/features/api';
18-
import { useModule } from 'src/features/modules/useModule';
1918

2019
export const CreateTaskListsWithAI = () => {
21-
const { set } = useModule('tasks');
2220
const { planId } = useParams();
2321
const MIN_LENGTH = 1;
2422
const [userPrompt, setUserPrompt] = useState('');
@@ -33,7 +31,7 @@ export const CreateTaskListsWithAI = () => {
3331
{ jobId: jobData?.jobId || '' },
3432
{
3533
skip: !jobData?.jobId,
36-
pollingInterval: pollingInterval, // 0 for no polling, 3000 for polling every 3 seconds
34+
pollingInterval, // number in ms or 0 for no polling
3735
}
3836
);
3937

0 commit comments

Comments
 (0)