mirror of
https://github.com/groldsf/obsidian_check_plugin.git
synced 2026-07-22 05:37:48 +00:00
fix error, miss else block
This commit is contained in:
parent
e9715b71ad
commit
a453a07b18
1 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue