@scheels-softdev/kendoreact-generics 2.1.8 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,12 +15,6 @@ idField, title, showClearButton, }) {
15
15
  if (selectedId !== undefined && selectedData !== undefined) {
16
16
  throw new Error("You cannot provide both selectedData and selectedId to GenericDropdown.");
17
17
  }
18
- if (selectedId === undefined && selectedData === undefined) {
19
- throw new Error("You must provide either selectedId or selectedData to GenericDropdown.");
20
- }
21
- if (idField !== undefined && selectedData !== undefined) {
22
- console.warn("idField is not necessary if you are using selectedData instead of selectedId. Doing so may result in something funky");
23
- }
24
18
  //local state
25
19
  const pageSize = 8;
26
20
  const [dataList, setDataList] = useState(data.map((x) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",