Skip to content

Commit

Permalink
#782 fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
athu-tran committed Oct 4, 2022
1 parent 8fe7506 commit 5ec62e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/CVERecord/CveJsonView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export default ({
if (isArecord === 'undefined' || (_.isEmpty(recordData) && _.isEmpty(idData))) {
this.$router.push('/');
}
if (isArecord === 'true' && !_.isEmpty(recordData)) {
if ((!_.isUndefined(isArecord) || isArecord === 'true') && !_.isEmpty(recordData)) {
this.record = recordData;
} else if (isArecord === 'false' && !_.isEmpty(idData)) {
} else if ((!_.isUndefined(isArecord) || isArecord === 'false') && !_.isEmpty(idData)) {
this.record = idData;
} else {
this.$router.push('/');
Expand Down

0 comments on commit 5ec62e3

Please sign in to comment.