Skip to content

Commit

Permalink
OC-22822 Fixed Form ID and Form version not displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
gushil committed May 21, 2024
1 parent 7323e44 commit 50fb4e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jsapp/js/assetParserUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ function parseSettings(asset: AssetResponse) {
let foundSettings: AssetContentSettings = {};
if (Array.isArray(settings) && settings.length) {
foundSettings = settings[0];
} else {
foundSettings = <AssetContentSettings> settings;
}
return {
unparsed__settings: foundSettings,
settings__style: foundSettings.style,
settings__form_id: foundSettings.form_id,
settings__title: foundSettings.title,
settings__style: foundSettings.style !== undefined ? foundSettings.style : '',
settings__form_id: foundSettings.form_id !== undefined ? foundSettings.form_id : (foundSettings.id_string !== undefined ? foundSettings.id_string : ''),
settings__version: foundSettings.version !== undefined ? foundSettings.version : '',
};
} else {
return {};
Expand Down

0 comments on commit 50fb4e4

Please sign in to comment.