Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
upgrade-data-crawler-fe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ThinhNC
upgrade-data-crawler-fe
Commits
de6ad176
Commit
de6ad176
authored
Oct 17, 2026
by
ThinhNC
Browse files
Options
Browse Files
Download
Plain Diff
Merge fix/export-custom-filename into develop: fix URL_LIST 422 validation error
parents
1e45855c
306919af
Pipeline
#53746
passed with stage
in 1 minute and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
crawler-task-form.tsx
src/components/crawler/crawler-task-form.tsx
+5
-2
No files found.
src/components/crawler/crawler-task-form.tsx
View file @
de6ad176
...
@@ -94,13 +94,16 @@ export function CrawlerTaskForm({ onSuccess }: CrawlerTaskFormProps) {
...
@@ -94,13 +94,16 @@ export function CrawlerTaskForm({ onSuccess }: CrawlerTaskFormProps) {
},
[
isTemplateOpen
]);
},
[
isTemplateOpen
]);
const
onSubmit
=
(
data
:
CreateCrawlJobInput
)
=>
{
const
onSubmit
=
(
data
:
CreateCrawlJobInput
)
=>
{
const
isUrlList
=
data
.
mode
===
"URL_LIST"
;
createJob
(
createJob
(
{
{
startUrl
:
data
.
startUrl
,
// Chỉ gửi startUrl khi không phải URL_LIST (tránh 422 từ backend validation)
...(
isUrlList
?
{}
:
{
startUrl
:
data
.
startUrl
||
undefined
}),
mode
:
data
.
mode
,
mode
:
data
.
mode
,
maxDepth
:
data
.
maxDepth
,
maxDepth
:
data
.
maxDepth
,
maxPages
:
data
.
maxPages
,
maxPages
:
data
.
maxPages
,
urls
:
data
.
urls
,
// Chỉ gửi urls khi là URL_LIST
urls
:
isUrlList
?
data
.
urls
:
undefined
,
priority
:
data
.
priority
,
priority
:
data
.
priority
,
userAgent
:
data
.
userAgent
||
undefined
,
userAgent
:
data
.
userAgent
||
undefined
,
cookie
:
data
.
cookie
||
undefined
,
cookie
:
data
.
cookie
||
undefined
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment