diff --git a/src/ui/components/synchronizationBehavior/EnableParentSyncSettingComponent.ts b/src/ui/components/synchronizationBehavior/EnableParentSyncSettingComponent.ts index 116366f..8832218 100644 --- a/src/ui/components/synchronizationBehavior/EnableParentSyncSettingComponent.ts +++ b/src/ui/components/synchronizationBehavior/EnableParentSyncSettingComponent.ts @@ -41,8 +41,9 @@ export class EnableParentSyncSettingComponent extends BaseSettingComponent { setValueInUi(value: any): void { if (this.toggleComponent) { this.toggleComponent.setValue(value as boolean); - } - throw new Error(`[${this.getSettingKey()}] Attempted to set value before component is rendered.`); + }else{ + throw new Error(`[${this.getSettingKey()}] Attempted to set value before component is rendered.`); + } } validate(): ValidationError | null { @@ -68,4 +69,4 @@ export class EnableParentSyncSettingComponent extends BaseSettingComponent { } return null; } -} \ No newline at end of file +}