From d8b8037b3e7785825af45166aa06e8cf28ec246f Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Tue, 6 Mar 2018 00:06:44 +0100 Subject: [PATCH] minor bug fix --- src/core/gui.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gui.coffee b/src/core/gui.coffee index d02fb6d..3dd51f7 100644 --- a/src/core/gui.coffee +++ b/src/core/gui.coffee @@ -76,7 +76,7 @@ self.OS.GUI = _courrier.osfail "Cannot read service script: #{srv} ", e, s appsByMime: (mime) -> - metas = ( v for k, v of _OS.setting.system.packages when v.app ) + metas = ( v for k, v of _OS.setting.system.packages when v and v.app ) mimes = ( m.mimes for m in metas when m) apps = [] # search app by mimes @@ -95,7 +95,7 @@ self.OS.GUI = appsWithServices: () -> o = {} - o[k] = v for k, v of _OS.setting.system.packages when v.services and v.services.length > 0 + o[k] = v for k, v of _OS.setting.system.packages when v and v.services and v.services.length > 0 o openWith: (it) ->