Skip to content

Commit

Permalink
Fix for regression that broke scenes pre-language support
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcope committed Jul 3, 2024
1 parent 44037f9 commit a3226f4
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 a3226f4

Please sign in to comment.