@konfuzio/document-validation-ui 0.1.45 → 0.1.46

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konfuzio/document-validation-ui",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "repository": "git://github.com:konfuzio-ai/document-validation-ui.git",
5
5
  "main": "dist/app.js",
6
6
  "scripts": {
@@ -155,9 +155,9 @@ const actions = {
155
155
  fetchCategories: ({ commit }, projectId) => {
156
156
  return myImports
157
157
  .makeGetPaginatedRequest(`categories/?project=${projectId}`, true)
158
- .then(async (response) => {
159
- if (response.data && response.data.results) {
160
- commit("SET_CATEGORIES", response.data.results);
158
+ .then(async (results) => {
159
+ if (results) {
160
+ commit("SET_CATEGORIES", results);
161
161
  }
162
162
  })
163
163
  .catch((error) => {