Revert "fix Eugeny/tabby#8534 : skip yaml unacceptable kind of object to dump"

This reverts commit 82a262026f.
This commit is contained in:
Clem
2023-07-11 18:49:53 +02:00
parent 0313e872fd
commit eea3ab9c74
2 changed files with 4 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ export class ConfigService {
// Scrub undefined values
let cleanStore = JSON.parse(JSON.stringify(this._store))
cleanStore = await this.maybeEncryptConfig(cleanStore)
await this.platform.saveConfig(yaml.dump(cleanStore, { skipInvalid: true }))
await this.platform.saveConfig(yaml.dump(cleanStore))
this.emitChange()
}
@@ -213,7 +213,7 @@ export class ConfigService {
* Reads config YAML as string
*/
readRaw (): string {
return yaml.dump(this._store, { skipInvalid: true })
return yaml.dump(this._store)
}
/**