Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer authored Dec 13, 2024
1 parent c03da18 commit 6591559
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/state/selectors/manifests.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { getConfig } from './config';
/** */
function createManifestoInstance(json, locale) {
if (!json) return undefined;
// Use JSON stringify/parse to create a deep copy and prevent Manifesto from mutating the json
const manifestoObject = Utils.parseManifest(JSON.parse(JSON.stringify(json)), locale ? { locale } : undefined);
// Local patching of Manifesto so that when its a Collection, it behaves similarly
if (typeof manifestoObject.getSequences != 'function') {
Expand Down

0 comments on commit 6591559

Please sign in to comment.