diff --git a/plinth/modules/api/views.py b/plinth/modules/api/views.py index 8c89ebb04..a1c5ebdc7 100644 --- a/plinth/modules/api/views.py +++ b/plinth/modules/api/views.py @@ -54,7 +54,7 @@ def get_shortcuts_as_json(username=None): shortcuts = [ _get_shortcut_data(shortcut) for shortcut in frontpage.Shortcut.list(username) - if shortcut.component_id + if shortcut.component_id and shortcut.is_enabled() ] custom_shortcuts = frontpage.get_custom_shortcuts() if custom_shortcuts: