From 4d5121df4c2c3e462785de0d9af13d0ce97cade8 Mon Sep 17 00:00:00 2001 From: Evans Aboge Date: Wed, 17 Aug 2022 12:48:03 +0300 Subject: [PATCH 1/2] populate method with GET for queries selected from tips --- src/app/views/app-sections/StatusMessages.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/views/app-sections/StatusMessages.tsx b/src/app/views/app-sections/StatusMessages.tsx index 086c6c37c..180e9a7de 100644 --- a/src/app/views/app-sections/StatusMessages.tsx +++ b/src/app/views/app-sections/StatusMessages.tsx @@ -47,6 +47,7 @@ const StatusMessages = () => { function setQuery(link: string) { const query: IQuery = { ...sampleQuery }; query.sampleUrl = link; + query.selectedVerb = 'GET'; dispatch(setSampleQuery(query)); } From e979ac46a203d20a4185a873def17d5f480b7d14 Mon Sep 17 00:00:00 2001 From: Evans Aboge Date: Mon, 22 Aug 2022 09:36:31 +0300 Subject: [PATCH 2/2] remove unused imports --- src/app/views/sidebar/sample-queries/SampleQueries.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/views/sidebar/sample-queries/SampleQueries.tsx b/src/app/views/sidebar/sample-queries/SampleQueries.tsx index 185b81e61..de2fa8873 100644 --- a/src/app/views/sidebar/sample-queries/SampleQueries.tsx +++ b/src/app/views/sidebar/sample-queries/SampleQueries.tsx @@ -29,7 +29,6 @@ import { sidebarStyles } from '../Sidebar.styles'; import { searchBoxStyles } from '../../../utils/searchbox.styles'; import { fetchSamples } from '../../../services/actions/samples-action-creators'; import { setQueryResponseStatus } from '../../../services/actions/query-status-action-creator'; -import { runQuery } from '../../../services/actions/query-action-creators'; import { setSampleQuery } from '../../../services/actions/query-input-action-creators'; import { translateMessage } from '../../../utils/translate-messages'; import { NoResultsFound } from '../sidebar-utils/SearchResult';