From: Yamagishi Kazutoshi Date: Fri, 28 Jul 2017 11:32:05 +0000 (+0900) Subject: Fix broken PropTypes (#4413) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=58eea59864252ca29b505255a73293647d184705;p=mastodon.git Fix broken PropTypes (#4413) --- diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index dc32a65ae..f0f42eaa8 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -41,8 +41,8 @@ export default class Status extends ImmutablePureComponent { autoPlayGif: PropTypes.bool, muted: PropTypes.bool, intersectionObserverWrapper: PropTypes.object, - index: PropTypes.oneOf(PropTypes.string, PropTypes.number), - listLength: PropTypes.oneOf(PropTypes.string, PropTypes.number), + index: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), + listLength: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; state = {