Skip to content

Commit

Permalink
use deep copies of the counters so they don't update (!)
Browse files Browse the repository at this point in the history
  • Loading branch information
goose-life committed Feb 6, 2025
1 parent c38408b commit 274c3e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indigo_app/static/javascript/indigo/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@
eidPrefix = Indigo.Preloads.provisionEid.substring(0, Indigo.Preloads.provisionEid.lastIndexOf('__'));
}
if (Indigo.Preloads.provisionEid) {
eidRewriter.counters = Indigo.Preloads.provisionCounters;
eidRewriter.eidCounter = Indigo.Preloads.eidCounter;
workComponentRewriter.counters = Indigo.Preloads.attachmentCounters;
eidRewriter.counters = JSON.parse(JSON.stringify(Indigo.Preloads.provisionCounters));
eidRewriter.eidCounter = JSON.parse(JSON.stringify(Indigo.Preloads.eidCounter));
workComponentRewriter.counters = JSON.parse(JSON.stringify(Indigo.Preloads.attachmentCounters));
}
eidRewriter.rewriteEid(this.xmlDocument.documentElement, eidPrefix);
// rewrite all attachment FRBR URI work components too
Expand Down

0 comments on commit 274c3e7

Please sign in to comment.