Refactor ChainFormPage and challenge types to use 'taskIds' instead of 'tasks' for improved clarity and consistency in data handling.
This commit is contained in:
@@ -79,7 +79,7 @@ export const ChainFormPage: React.FC = () => {
|
||||
id,
|
||||
data: {
|
||||
name: name.trim(),
|
||||
tasks: taskIds,
|
||||
taskIds: taskIds,
|
||||
},
|
||||
}).unwrap()
|
||||
toaster.create({
|
||||
@@ -90,7 +90,7 @@ export const ChainFormPage: React.FC = () => {
|
||||
} else {
|
||||
await createChain({
|
||||
name: name.trim(),
|
||||
tasks: taskIds,
|
||||
taskIds: taskIds,
|
||||
}).unwrap()
|
||||
toaster.create({
|
||||
title: t('challenge.admin.common.success'),
|
||||
|
||||
Reference in New Issue
Block a user