Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
1cecc7f9
Unverified
Commit
1cecc7f9
authored
Jan 19, 2021
by
Ivana Huckova
Committed by
GitHub
Jan 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clears errors after running new query (#30367)
parent
32c51215
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
public/app/features/explore/Explore.tsx
+2
-1
public/app/features/explore/__snapshots__/Explore.test.tsx.snap
+1
-3
public/app/features/explore/state/query.ts
+1
-1
No files found.
public/app/features/explore/Explore.tsx
View file @
1cecc7f9
...
...
@@ -312,7 +312,8 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
const
isLoading
=
queryResponse
.
state
===
LoadingState
.
Loading
;
// gets an error without a refID, so non-query-row-related error, like a connection error
const
queryErrors
=
queryResponse
.
error
?
[
queryResponse
.
error
]
:
undefined
;
const
queryErrors
=
queryResponse
.
state
===
LoadingState
.
Error
&&
queryResponse
.
error
?
[
queryResponse
.
error
]
:
undefined
;
const
queryError
=
getFirstNonQueryRowSpecificError
(
queryErrors
);
const
showRichHistory
=
openDrawer
===
ExploreDrawer
.
RichHistory
;
...
...
public/app/features/explore/__snapshots__/Explore.test.tsx.snap
View file @
1cecc7f9
...
...
@@ -37,9 +37,7 @@ exports[`Explore should render component 1`] = `
richHistoryButtonActive={false}
/>
</div>
<ErrorContainer
queryError={Object {}}
/>
<ErrorContainer />
<AutoSizer
disableHeight={true}
disableWidth={false}
...
...
public/app/features/explore/state/query.ts
View file @
1cecc7f9
...
...
@@ -657,7 +657,7 @@ export const processQueryResponse = (
return
{
...
state
,
loading
:
false
,
loading
:
loadingState
===
LoadingState
.
Loading
||
loadingState
===
LoadingState
.
Streaming
,
queryResponse
:
response
,
graphResult
:
null
,
tableResult
:
null
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment