Skip to content

Commit

Permalink
Update query key generation in QueryHistoryButton
Browse files Browse the repository at this point in the history
  • Loading branch information
cctv1005s committed Oct 7, 2024
1 parent e10a449 commit c496f82
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export const QueryHistoryButton = ({
}[] = [];

for (const record of queryHistory) {
const key = (record?.query?.native?.query ?? "") + record.database_id;
const key =
(record?.query?.native?.query?.trim() ?? "") + record.database_id;

if (queries.length >= MAX_SHOWN_QUERIES) {
break;
Expand Down

0 comments on commit c496f82

Please sign in to comment.