Skip to content

Commit

Permalink
fix: bad optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Oct 15, 2024
1 parent 02b15e0 commit 0941525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/faultmanagement/FaultManagementAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class FaultManagementAPI {
* @returns {ShelveDuration[]}
*/
getShelveDurations() {
return this.provider?.getShelveDurations() ?? DEFAULT_SHELVE_DURATIONS;
return this.provider.getShelveDurations?.() ?? DEFAULT_SHELVE_DURATIONS;
}
}

Expand Down

0 comments on commit 0941525

Please sign in to comment.