Skip to content

Commit

Permalink
fix name of saved query in list
Browse files Browse the repository at this point in the history
  • Loading branch information
dufoli committed Aug 26, 2024
1 parent d1da4dd commit 8aa8e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/data-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 8aa8e41

Please sign in to comment.