File tree Expand file tree Collapse file tree
ui/src/views/infra/network Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -546,8 +546,7 @@ export default {
546546 }).catch (error => {
547547 this .$notification .error ({
548548 message: ` ${ this .$t (' label.error' )} ${ error .response .status } ` ,
549- description: error .response .data .createvlaniprangeresponse
550- ? error .response .data .createvlaniprangeresponse .errortext : error .response .data .errorresponse .errortext ,
549+ description: error .response .data .createvlaniprangeresponse ? .errortext || error .response .data .errorresponse .errortext ,
551550 duration: 0
552551 })
553552 }).finally (() => {
@@ -578,8 +577,7 @@ export default {
578577 }).catch (error => {
579578 this .$notification .error ({
580579 message: ` ${ this .$t (' label.error' )} ${ error .response .status } ` ,
581- description: error .response .data .updatevlaniprangeresponse
582- ? error .response .data .updatevlaniprangeresponse .errortext : error .response .data .errorresponse .errortext ,
580+ description: error .response .data .updatevlaniprangeresponse ? .errortext || error .response .data .errorresponse .errortext ,
583581 duration: 0
584582 })
585583 }).finally (() => {
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ export default {
235235 },
236236 returnPodName (id ) {
237237 const match = this .pods .find (i => i .id === id)
238- return match ? match .name : null
238+ return match? .name || null
239239 },
240240 handleOpenAddIpRangeModal () {
241241 this .addIpRangeModal = true
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export default {
144144 const params = {}
145145 if (args .mapping ) {
146146 Object .keys (args .mapping ).map (key => {
147- params[key] = ' value' in args .mapping [key] ? args . mapping [key]. value (this .resource ) : null
147+ params[key] = ' value' in args .mapping [key]? . value (this .resource ) || null
148148 })
149149 }
150150 params .page = this .page
@@ -190,7 +190,7 @@ export default {
190190 this .listData [args .title ].loading = false
191191 this .$notification .error ({
192192 message: this .$t (' message.request.failed' ),
193- description: (error .response && error . response . headers && error . response . headers [' x-description' ]) || error .message
193+ description: (error .response ? . headers ? . [' x-description' ]) || error .message
194194 })
195195 }
196196 this .$forceUpdate ()
You can’t perform that action at this time.
0 commit comments