@kaspernj/api-maker 1.0.290 → 1.0.291

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.
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  ]
17
17
  },
18
18
  "name": "@kaspernj/api-maker",
19
- "version": "1.0.290",
19
+ "version": "1.0.291",
20
20
  "type": "module",
21
21
  "description": "",
22
22
  "main": "index.js",
@@ -185,7 +185,7 @@ class ApiMakerTable extends React.PureComponent {
185
185
  "showNoRecordsFoundContent"
186
186
  )
187
187
 
188
- if (collection && collection.args.modelClass != modelClass) {
188
+ if (collection && collection.args.modelClass.modelClassData().name != modelClass.modelClassData().name) {
189
189
  throw new Error(
190
190
  `Model class from collection '${collection.args.modelClass.modelClassData().name}' ` +
191
191
  `didn't match model class on table: '${modelClass.modelClassData().name}'`