Skip to content

Commit 67ae6ff

Browse files
authored
fix: error when exporting a task (#3369)
1 parent 666b21c commit 67ae6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flows/pipes/Schedule/view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ const Schedule: FC<PipeProp> = ({Context}) => {
278278
}, [taskText])
279279

280280
const storeTask = (task: any) => {
281-
const list = ((data.task.id ? [data.task] : data.task) || []).slice(0)
281+
const list = ((data.task?.id ? [data.task] : data.task) || []).slice(0)
282282
list.unshift({
283283
id: task.id,
284284
name: task.name,

0 commit comments

Comments
 (0)