@gitlab/duo-ui 8.7.5 → 8.7.6

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,3 +1,10 @@
1
+ ## [8.7.6](https://gitlab.com/gitlab-org/duo-ui/compare/v8.7.5...v8.7.6) (2025-03-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Emit 'get-content' only when content is undefined ([8d2370b](https://gitlab.com/gitlab-org/duo-ui/commit/8d2370bcca52531071279b79b5ff7961dd3edb04))
7
+
1
8
  ## [8.7.5](https://gitlab.com/gitlab-org/duo-ui/compare/v8.7.4...v8.7.5) (2025-03-20)
2
9
 
3
10
 
@@ -99,7 +99,7 @@ var script = {
99
99
  if (!this.canOpen(contextItem)) {
100
100
  return;
101
101
  }
102
- if (!contextItem.content) {
102
+ if (contextItem.content === undefined) {
103
103
  this.$emit('get-content', contextItem);
104
104
  }
105
105
  this.previewContextItemId = contextItem.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/duo-ui",
3
- "version": "8.7.5",
3
+ "version": "8.7.6",
4
4
  "description": "Duo UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -106,7 +106,8 @@ export default {
106
106
  if (!this.canOpen(contextItem)) {
107
107
  return;
108
108
  }
109
- if (!contextItem.content) {
109
+
110
+ if (contextItem.content === undefined) {
110
111
  this.$emit('get-content', contextItem);
111
112
  }
112
113
  this.previewContextItemId = contextItem.id;