Skip to content

Commit 83ffa8c

Browse files
committed
fix expected prop types in task history list and image marker layer
1 parent f6241e5 commit 83ffa8c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/EnhancedMap/ImageMarkerLayer/ImageMarkerLayer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ImageMarkerLayer.propTypes = {
6666
key: PropTypes.string.isRequired,
6767
url: PropTypes.string.isRequired,
6868
}),
69-
).isRequired,
69+
),
7070
imageClicked: PropTypes.func.isRequired,
7171
markerColor: PropTypes.string,
7272
};

src/components/TaskHistoryList/TaskHistoryList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ const CommentEntry = ({ entry, props, index }) => {
460460
};
461461

462462
const commentEntry = (entry, props, index) => {
463-
return <CommentEntry entry={entry} props={props} index={index} />;
463+
return <CommentEntry key={index} entry={entry} props={props} index={index} />;
464464
};
465465

466466
const statusEntry = (entry, props) => {
@@ -512,7 +512,7 @@ TaskHistoryList.propTypes = {
512512
/** The history to display */
513513
taskHistory: PropTypes.arrayOf(
514514
PropTypes.shape({
515-
actionType: PropTypes.integer,
515+
actionType: PropTypes.number,
516516
timestamp: PropTypes.string,
517517
comment: PropTypes.string,
518518
}),

0 commit comments

Comments
 (0)