From 9c2a27047575685057ac61dbaa3d8a6cbac8a41b Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Tue, 4 Jun 2019 13:53:02 +0300 Subject: [PATCH] Require key in sortabletable props --- .../oodikone2-frontend/src/components/SortableTable/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/oodikone2-frontend/src/components/SortableTable/index.jsx b/services/oodikone2-frontend/src/components/SortableTable/index.jsx index cbd5becebf..8523c50e9f 100644 --- a/services/oodikone2-frontend/src/components/SortableTable/index.jsx +++ b/services/oodikone2-frontend/src/components/SortableTable/index.jsx @@ -97,10 +97,10 @@ SortableTable.propTypes = { getRowKey: func.isRequired, getRowProps: func, columns: arrayOf(shape({ - key: string, + key: string.isRequired, title: oneOfType([element, string]), headerProps: shape({}), - getRowVal: func.isRequired, + getRowVal: func, getRowContent: func, getCellProps: func, cellProps: shape({}),