Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(experimental_features): address review
Elian Dorana197a33d3569
diff --git a/apps/client/src/services/experimental_features.ts b/apps/client/src/services/experimental_features.tsindex 7daf3c210d..39cfedf6fc 100644--- a/apps/client/src/services/experimental_features.ts+++ b/apps/client/src/services/experimental_features.ts@@ -28,7 +28,12 @@ export function getEnabledExperimentalFeatureIds() {function getEnabledFeatures() {if (!enabledFeatures) {- const features = JSON.parse(options.get("experimentalFeatures")) as ExperimentalFeatureId[];+ let features: ExperimentalFeatureId[] = [];+ try {+ features = JSON.parse(options.get("experimentalFeatures")) as ExperimentalFeatureId[];+ } catch (e) {+ console.warn("Failed to parse experimental features from options:", e);+ }enabledFeatures = new Set(features);}return enabledFeatures;