Skip to content

Commit

Permalink
fix: handle the case of no provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Oct 15, 2024
1 parent 0941525 commit 0e64353
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 0e64353

Please sign in to comment.