@mixd-id/web-scaffold 0.1.230406145 → 0.1.230406146
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 +1 -1
- package/src/components/Alert.vue +3 -1
package/package.json
CHANGED
package/src/components/Alert.vue
CHANGED
|
@@ -131,11 +131,13 @@ export default{
|
|
|
131
131
|
if(this.alert.details && typeof this.alert.details === 'object'){
|
|
132
132
|
const details = {}
|
|
133
133
|
for(let key in this.alert.details){
|
|
134
|
+
if([ 'name', 'title', 'message' ].includes(key)) continue
|
|
135
|
+
|
|
134
136
|
details[key] = typeof this.alert.details[key] === 'object' ?
|
|
135
137
|
JSON.stringify(this.alert.details[key]) :
|
|
136
138
|
this.alert.details[key]
|
|
137
139
|
}
|
|
138
|
-
return details
|
|
140
|
+
return Object.keys(details).length > 0 ? details : null
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
}
|