Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 18e3598

Browse files
committed
fix: react warning about props
1 parent dfb013b commit 18e3598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/HOC/withGuardian.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const withGuardian = WrappedComponent => {
9090
// author check
9191
ownerId: PropTypes.string,
9292
// if fallbackProps provide, then render the WrappedComp along with this props
93-
fallbackProps: PropTypes.oneOf(['readOnly']),
93+
fallbackProps: PropTypes.oneOf(['readOnly', '']),
9494
}
9595

9696
WithGuardian.defaultProps = {

0 commit comments

Comments
 (0)