From 5fdc5611f070e0f668ff3e5e0f5014d1782158a2 Mon Sep 17 00:00:00 2001 From: Devon A Thomson Date: Tue, 1 Sep 2020 12:45:32 -0400 Subject: [PATCH] removed unneeded boolean cast --- .../application/actions/library_notification_action.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/dashboard/public/application/actions/library_notification_action.tsx b/src/plugins/dashboard/public/application/actions/library_notification_action.tsx index 3d4f044aeb170..974b55275ccc1 100644 --- a/src/plugins/dashboard/public/application/actions/library_notification_action.tsx +++ b/src/plugins/dashboard/public/application/actions/library_notification_action.tsx @@ -78,10 +78,10 @@ export class LibraryNotificationAction implements ActionByType { - return Boolean( + return ( embeddable.getInput()?.viewMode !== ViewMode.VIEW && - isReferenceOrValueEmbeddable(embeddable) && - embeddable.inputIsRefType(embeddable.getInput()) + isReferenceOrValueEmbeddable(embeddable) && + embeddable.inputIsRefType(embeddable.getInput()) ); };