Skip to content

Commit

Permalink
adds check for is icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Oct 10, 2024
1 parent 4d3de59 commit b40ed3f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/helpers/forms/settingsConfigForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,14 @@ export class SettingsConfigForm extends FormApplication {

const processSettings = (settingGroup, dataGroup) => {
for (const [key, settingPathOrGroup] of Object.entries(settingGroup)) {
if (typeof settingPathOrGroup === "string") {
updateSetting(settingPathOrGroup, dataGroup[key]);
} else if (settingPathOrGroup.type === "number") {
updateSetting(settingPathOrGroup.path, dataGroup[key]);
} else if (typeof settingPathOrGroup === "object") {
processSettings(settingPathOrGroup, dataGroup[key]);
if (key !== 'icon') {
if (typeof settingPathOrGroup === "string") {
updateSetting(settingPathOrGroup, dataGroup[key]);
} else if (settingPathOrGroup.type === "number") {
updateSetting(settingPathOrGroup.path, dataGroup[key]);
} else if (typeof settingPathOrGroup === "object") {
processSettings(settingPathOrGroup, dataGroup[key]);
}
}
}
};
Expand Down

0 comments on commit b40ed3f

Please sign in to comment.