Skip to content

Commit

Permalink
Merge pull request #289 from Smithsonian/regression-fix
Browse files Browse the repository at this point in the history
Fix for regression that broke scenes pre-language support
  • Loading branch information
gjcope authored Jul 3, 2024
2 parents 44037f9 + a3226f4 commit d1bfa26
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/client/components/CVMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ export default class CVMeta extends Component

if (data.collection) {
this.collection.dictionary = data.collection;
Object.keys(this.collection.get("titles")).forEach( key => {
this.language.addLanguage(ELanguageType[key]);
});
if(this.collection.get("titles")) {
Object.keys(this.collection.get("titles")).forEach( key => {
this.language.addLanguage(ELanguageType[key]);
});
}
}
if (data.process) {
this.process.dictionary = data.process;
Expand Down

0 comments on commit d1bfa26

Please sign in to comment.