diff --git a/src/libs/actions/Task.ts b/src/libs/actions/Task.ts index 644c5f6c2bcc..79435d2688f6 100644 --- a/src/libs/actions/Task.ts +++ b/src/libs/actions/Task.ts @@ -191,16 +191,12 @@ function createTaskAndNavigate( { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${optimisticTaskReport.reportID}`, - value: { - errorFields: { - createTask: ErrorUtils.getMicroSecondOnyxError('task.genericCreateTaskFailureMessage'), - }, - }, + value: null, }, { onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${optimisticTaskReport.reportID}`, - value: {[optimisticTaskCreatedAction.reportActionID]: {pendingAction: null}}, + value: null, }, ];