cloud-web-corejs 1.0.54-dev.503 → 1.0.54-dev.504

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,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.503",
4
+ "version": "1.0.54-dev.504",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -152,7 +152,12 @@ indexMixin = {
152
152
  let showSourceUrl = null
153
153
  if (Array.isArray(attachment)) {
154
154
  if (attachment.length) {
155
- showSourceUrl = attachment[0].domain + attachment[0].url;
155
+ let row = attachment[0];
156
+ if(row){
157
+ showSourceUrl = row.domain + row.url;
158
+ }else{
159
+ showSourceUrl = null;
160
+ }
156
161
  }
157
162
  } else if (Object.prototype.toString.call(attachment) === "[object Object]") {
158
163
  showSourceUrl = attachment.domain + attachment.url;
@@ -196,7 +201,12 @@ indexMixin = {
196
201
  let fileName = null
197
202
  if (Array.isArray(attachment)) {
198
203
  if (attachment.length) {
199
- fileName = attachment[0].name;
204
+ let row = attachment[0];
205
+ if(row){
206
+ fileName = row.name;
207
+ }else{
208
+ fileName = null;
209
+ }
200
210
  }
201
211
  } else if (Object.prototype.toString.call(attachment) === "[object Object]") {
202
212
  fileName = attachment.name;