@bento-core/paginated-table 1.0.1-CDS.2 → 1.0.1-CDS.4

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.
@@ -53,7 +53,7 @@ const DownloadManifestView = props => {
53
53
  table
54
54
  } = _ref;
55
55
  const fetchResult = await client.query({
56
- query: table.api,
56
+ query: table.manifestAPI ? table.manifestAPI : table.api,
57
57
  variables: _objectSpread({}, getQueryVeriables(queryVariables))
58
58
  }).then(result => result.data.filesInList).then(result => {
59
59
  const {
@@ -23,7 +23,7 @@ const addFilesResponseHandler = function addFilesResponseHandler(response) {
23
23
  }
24
24
  return acc;
25
25
  }, []);
26
- return ids;
26
+ return [...new Set(ids)];
27
27
  }
28
28
  return [];
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/paginated-table",
3
- "version": "1.0.1-CDS.2",
3
+ "version": "1.0.1-CDS.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -28,5 +28,5 @@
28
28
  },
29
29
  "author": "CTOS Bento Team",
30
30
  "license": "ISC",
31
- "gitHead": "7b3aaef031248be613da70582863625cf729fcce"
31
+ "gitHead": "0f443202d022a5440ca54be3f172d26bb81ecbad"
32
32
  }
@@ -42,7 +42,7 @@ const DownloadManifestView = (props) => {
42
42
  async function fetchData({ queryVariables, table }) {
43
43
  const fetchResult = await client
44
44
  .query({
45
- query: table.api,
45
+ query: table.manifestAPI ? table.manifestAPI : table.api,
46
46
  variables: {
47
47
  ...getQueryVeriables(queryVariables),
48
48
  },
@@ -16,7 +16,7 @@ const addFilesResponseHandler = (response, responseKeys = []) => {
16
16
  }
17
17
  return acc;
18
18
  }, []);
19
- return ids;
19
+ return [...new Set(ids)];
20
20
  }
21
21
  return [];
22
22
  }