fix: Invalid argument supplied to oneOfType, expected an instance of array

This commit is contained in:
ValeraS
2018-07-17 11:31:44 +03:00
committed by Stuart Taylor
parent 57ceee0897
commit 2e04b0a1e7
2 changed files with 4 additions and 4 deletions

View File

@ -14,10 +14,10 @@ const jsFormPropTypes = {
hardGoTo: PropTypes.func.isRequired,
isCertClaimed: PropTypes.bool,
jsProjects: PropTypes.objectOf(
PropTypes.oneOfType(
PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.object),
PropTypes.string
)
])
),
projectBlockName: PropTypes.string,
superBlock: PropTypes.string,

View File

@ -71,10 +71,10 @@ function SolutionViewer({ files }) {
SolutionViewer.displayName = 'SolutionViewer';
SolutionViewer.propTypes = {
files: PropTypes.oneOfType(
files: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.objectOf(PropTypes.string)),
PropTypes.string
)
])
};
export default SolutionViewer;