@atlaskit/link-datasource 0.34.0 → 0.34.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 0.34.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0260eb48f1a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0260eb48f1a) - [ux] Skip column schema apply if no results on initial query
8
+
3
9
  ## 0.34.0
4
10
 
5
11
  ### Minor Changes
@@ -188,7 +188,7 @@ var useDatasourceTableState = function useDatasourceTableState(_ref) {
188
188
  if (fieldKeys.length > 0) {
189
189
  setLastRequestedFieldKeys(fieldKeys);
190
190
  }
191
- if (isSchemaFromData && schema) {
191
+ if (isSchemaFromData && schema && items.length > 0) {
192
192
  applySchemaProperties(schema.properties);
193
193
  }
194
194
  _context2.next = 33;
@@ -344,7 +344,7 @@ var analyticsContextAttributes = {
344
344
  };
345
345
  var analyticsContextData = {
346
346
  packageName: "@atlaskit/link-datasource",
347
- packageVersion: "0.34.0",
347
+ packageVersion: "0.34.1",
348
348
  source: 'datasourceConfigModal'
349
349
  };
350
350
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "sideEffects": false
5
5
  }
@@ -109,7 +109,7 @@ export const useDatasourceTableState = ({
109
109
  if (fieldKeys.length > 0) {
110
110
  setLastRequestedFieldKeys(fieldKeys);
111
111
  }
112
- if (isSchemaFromData && schema) {
112
+ if (isSchemaFromData && schema && items.length > 0) {
113
113
  applySchemaProperties(schema.properties);
114
114
  }
115
115
  } catch (e) {
@@ -290,7 +290,7 @@ const analyticsContextAttributes = {
290
290
  };
291
291
  const analyticsContextData = {
292
292
  packageName: "@atlaskit/link-datasource",
293
- packageVersion: "0.34.0",
293
+ packageVersion: "0.34.1",
294
294
  source: 'datasourceConfigModal'
295
295
  };
296
296
  const contextData = {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "sideEffects": false
5
5
  }
@@ -181,7 +181,7 @@ export var useDatasourceTableState = function useDatasourceTableState(_ref) {
181
181
  if (fieldKeys.length > 0) {
182
182
  setLastRequestedFieldKeys(fieldKeys);
183
183
  }
184
- if (isSchemaFromData && schema) {
184
+ if (isSchemaFromData && schema && items.length > 0) {
185
185
  applySchemaProperties(schema.properties);
186
186
  }
187
187
  _context2.next = 33;
@@ -334,7 +334,7 @@ var analyticsContextAttributes = {
334
334
  };
335
335
  var analyticsContextData = {
336
336
  packageName: "@atlaskit/link-datasource",
337
- packageVersion: "0.34.0",
337
+ packageVersion: "0.34.1",
338
338
  source: 'datasourceConfigModal'
339
339
  };
340
340
  var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"