diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/circulation-rules.js b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/circulation-rules.js index 34bf3a5b8e..63d18fa48a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/circulation-rules.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/circulation-rules.js @@ -413,6 +413,10 @@ export const useCircRulesStore = defineStore("circRules", () => { async getSelectedRuleSet(context) { const rawSelectedRuleSet = await this.getRawSelectedRuleSet(context); + if (!rawSelectedRuleSet) { + return; + } + let formattedSelectedRuleSet = cloneDeep(rawSelectedRuleSet); let i = 1; while (i <= this.triggerCounts[this.currentLibraryId]) {