From 6d5bc462b4bb6716dbb11c51c97e3f2e20654c7a Mon Sep 17 00:00:00 2001 From: Claire Date: Sat, 21 Oct 2023 22:22:09 +0200 Subject: [PATCH] Fix `withOptionalRouter` propTypes issue --- app/javascript/flavours/glitch/utils/react_router.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/utils/react_router.jsx b/app/javascript/flavours/glitch/utils/react_router.jsx index a56883270bbd91..fa8f0db2b5cbd6 100644 --- a/app/javascript/flavours/glitch/utils/react_router.jsx +++ b/app/javascript/flavours/glitch/utils/react_router.jsx @@ -49,6 +49,7 @@ export function withOptionalRouter(Component) { C.displayName = displayName; C.WrappedComponent = Component; C.propTypes = { + ...Component.propTypes, wrappedComponentRef: PropTypes.oneOfType([ PropTypes.string, PropTypes.func,