From b1140ae3f959c3dce064211416f1edea05be918f Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 7 Dec 2020 09:13:04 -0800 Subject: [PATCH] Remove error when no app bookmarks are found Summary: App match patterns are not available for all apps, there is no reason to treat this as an error, currently errors are printed for apps like "Flipper". Reviewed By: nikoant Differential Revision: D25369648 fbshipit-source-id: a63aadbf14745310501565b00081602e44852398 --- desktop/plugins/navigation/util/appMatchPatterns.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/plugins/navigation/util/appMatchPatterns.tsx b/desktop/plugins/navigation/util/appMatchPatterns.tsx index b2e272e50..4c57e567e 100644 --- a/desktop/plugins/navigation/util/appMatchPatterns.tsx +++ b/desktop/plugins/navigation/util/appMatchPatterns.tsx @@ -44,7 +44,8 @@ export const getAppMatchPatterns = ( } }); } else if (appName != null) { - reject(new Error('No rule for app ' + appName)); + console.log('No rule for app ' + appName); + resolve([]); } else { reject(new Error('selectedApp was null')); }