Bug 10190: (follow-up): fix: mtt formating: handle unset
This is needed to handle creating new triggers for libraries for which all earlier triggers are defaults (do not exist in the DB , are not explicitly set) Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
e4aecaa519
commit
aa905b0801
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue