Add missing isRequired on ResourceView propTypes
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Tue, 06 Jun 2017 17:45:41 +0200
changeset 223 b7000ff42372
parent 222 46b85a896c43
child 224 13f568434dcd
Add missing isRequired on ResourceView propTypes
src/components/Resource.js
--- a/src/components/Resource.js	Wed May 24 17:38:42 2017 +0200
+++ b/src/components/Resource.js	Tue Jun 06 17:45:41 2017 +0200
@@ -201,7 +201,7 @@
     );
 }
 ResourceView.propTypes = {
-    resource: PropTypesResourceModel,
+    resource: PropTypesResourceModel.isRequired,
 };
 
 export function ResourceDeletionView({resource}, {router}) {