Return false by default for isEnabled

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2020-11-24 12:32:18 +02:00
1 parent 5f1314427c
commit 0421e8cb9f
1 file changed
+1 -1
+1 -1
View File
@@ -65,7 +65,7 @@ export class ExtensionsStore extends BaseStore<LensExtensionsStoreModel> {
isEnabled(extId: LensExtensionId) { isEnabled(extId: LensExtensionId) {
const state = this.state.get(extId); const state = this.state.get(extId);
return !state /* enabled by default */ || state.enabled; return state && state.enabled; // by default false
} }
@action @action