Browse Source

fix Eugeny/tabby#8534 by @Eugeny

Clem 2 years ago
parent
commit
47a6e81998
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tabby-core/src/services/config.service.ts

+ 3 - 1
tabby-core/src/services/config.service.ts

@@ -213,7 +213,9 @@ export class ConfigService {
      * Reads config YAML as string
      */
     readRaw (): string {
-        return yaml.dump(this._store)
+        // Scrub undefined values
+        const cleanStore = JSON.parse(JSON.stringify(this._store))
+        return yaml.dump(cleanStore)
     }
 
     /**