Skip to content

Commit

Permalink
fix(billing): adjust ssh key list template and fix error prone code (#…
Browse files Browse the repository at this point in the history
…14994)

ref: MANAGER-16766
Signed-off-by: Jacques Larique <[email protected]>
  • Loading branch information
JacquesLarique authored Jan 23, 2025
1 parent a82e535 commit b2b345e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class AutorenewCtrl {

this.parseExtraCriteria();

if (this.sort.predicate) {
if (this.sort?.predicate) {
this.columnsConfig = map(COLUMNS_CONFIG, (column) =>
column.property === this.sort.predicate
? {
Expand Down Expand Up @@ -193,7 +193,7 @@ export default class AutorenewCtrl {

return this.$q.resolve({
meta: {
totalCount: this.services.count,
totalCount: this.services?.count || 0,
},
data: this.billingServices,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<tbody
data-ng-show="ctrlSsh.sshKeyList.length > 0 && !ctrlSsh.sshLoading"
>
<tr data-ng-repeat="ssh in ctrlSsh.sshKeys track by $index">
<tr data-ng-repeat="ssh in ctrlSsh.sshKeyList track by $index">
<td>
<span data-ng-bind-html="ssh.keyName"></span>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class AutorenewCtrl {

this.parseExtraCriteria();

if (this.sort.predicate) {
if (this.sort?.predicate) {
this.columnsConfig = map(COLUMNS_CONFIG, (column) =>
column.property === this.sort.predicate
? {
Expand Down Expand Up @@ -193,7 +193,7 @@ export default class AutorenewCtrl {

return this.$q.resolve({
meta: {
totalCount: this.services.count,
totalCount: this.services?.count || 0,
},
data: this.billingServices,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<tbody
data-ng-show="ctrlSsh.sshKeyList.length > 0 && !ctrlSsh.sshLoading"
>
<tr data-ng-repeat="ssh in ctrlSsh.sshKeys track by $index">
<tr data-ng-repeat="ssh in ctrlSsh.sshKeyList track by $index">
<td>
<span data-ng-bind-html="ssh.keyName"></span>
</td>
Expand Down

0 comments on commit b2b345e

Please sign in to comment.