From c196698be59a6918fc37cd2a0929b8334da20e88 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Fri, 28 Jul 2017 20:32:05 +0900 Subject: [PATCH] Fix broken PropTypes (#4413) --- app/javascript/mastodon/components/status.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index dc32a65ae6..f0f42eaa89 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 = {