From f6b76aa7de0424e578de80e4e2fe2d873267f042 Mon Sep 17 00:00:00 2001 From: olivier Dufour Date: Mon, 26 Aug 2024 16:20:28 +0200 Subject: [PATCH] fix name of saved query in list --- addon/data-export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/data-export.js b/addon/data-export.js index 309dd595..f0755386 100644 --- a/addon/data-export.js +++ b/addon/data-export.js @@ -2152,7 +2152,7 @@ class App extends React.Component { h("div", {className: "button-group"}, h("select", {value: JSON.stringify(model.selectedSavedEntry), onChange: this.onSelectSavedEntry, className: "query-history"}, h("option", {value: JSON.stringify(null), disabled: true}, "Saved Queries"), - model.savedHistory.list.map(q => h("option", {key: JSON.stringify(q), value: JSON.stringify(q)}, q.query.substring(0, 300))) + model.savedHistory.list.map(q => h("option", {key: JSON.stringify(q), value: JSON.stringify(q)}, (q.name ? q.name + ":" + q.query : q.query).substring(0, 300))) ), h("input", {placeholder: "Query Label", type: "save", value: model.queryName, onInput: this.onSetQueryName}), h("button", {onClick: this.onAddToHistory, title: "Add query to saved history"}, "Save Query"),