Skip to content

Commit 4700f96

Browse files
Merge pull request #24185 from allroundexperts/fix-23200-followup
fix: console errors due to faulty prop type
2 parents ab4dc4b + 6a3a1d9 commit 4700f96

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/libs/actions/Task.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ function createTaskAndNavigate(parentReportID, title, description, assignee, ass
8888
...optimisticTaskReport,
8989
pendingFields: {
9090
createChat: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
91+
reportName: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
92+
description: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
93+
managerID: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
9194
},
9295
isOptimisticReport: true,
9396
},
@@ -116,6 +119,9 @@ function createTaskAndNavigate(parentReportID, title, description, assignee, ass
116119
value: {
117120
pendingFields: {
118121
createChat: null,
122+
reportName: null,
123+
description: null,
124+
managerID: null,
119125
},
120126
isOptimisticReport: false,
121127
},

src/pages/reportPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ export default PropTypes.shape({
7878
writeCapability: PropTypes.oneOf(_.values(CONST.REPORT.WRITE_CAPABILITIES)),
7979

8080
/** Field-specific pending states for offline UI status */
81-
pendingFields: PropTypes.objectOf(PropTypes.objectOf(PropTypes.string)),
81+
pendingFields: PropTypes.objectOf(PropTypes.string),
8282
});

0 commit comments

Comments
 (0)