From b147a5983aebd0ea11ed66ab5bc432deea148f15 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sat, 16 Dec 2023 20:28:55 +0100 Subject: [PATCH] fix --- src/dashboard/Data/Browser/Browser.react.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dashboard/Data/Browser/Browser.react.js b/src/dashboard/Data/Browser/Browser.react.js index fbf6a31df5..0abeecbf9e 100644 --- a/src/dashboard/Data/Browser/Browser.react.js +++ b/src/dashboard/Data/Browser/Browser.react.js @@ -1379,10 +1379,8 @@ class Browser extends DashboardView { this.setState(prevState => ({ processedScripts: prevState.processedScripts + 1, })); - this.showNote( - response || - `Ran script "${script.title}" on "${this.props.className}" object "${object.id}".` - ); + const note = (typeof response === 'object' ? JSON.stringify(response) : response) || `Ran script "${script.title}" on "${object.id}".`; + this.showNote(note); } this.refresh(); } catch (e) {