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
6682a36b
Unverified
Commit
6682a36b
authored
Dec 04, 2019
by
Andrej Ocenas
Committed by
GitHub
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explore: Fix reset reducer duplication (#20838)
parent
79c0fa4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
public/app/features/explore/state/reducers.ts
+5
-14
No files found.
public/app/features/explore/state/reducers.ts
View file @
6682a36b
...
...
@@ -55,7 +55,6 @@ import {
updateUIStateAction
,
toggleLogLevelAction
,
changeLoadingStateAction
,
resetExploreAction
,
queryStreamUpdatedAction
,
QueryEndedPayload
,
queryStoreSubscriptionAction
,
...
...
@@ -727,6 +726,11 @@ export const exploreReducer = (state = initialExploreState, action: HigherOrderA
}
case
ActionTypes
.
ResetExplore
:
{
const
leftState
=
state
[
ExploreId
.
left
];
const
rightState
=
state
[
ExploreId
.
right
];
stopQueryState
(
leftState
.
querySubscription
);
stopQueryState
(
rightState
.
querySubscription
);
if
(
action
.
payload
.
force
||
!
Number
.
isInteger
(
state
.
left
.
originPanelId
))
{
return
initialExploreState
;
}
...
...
@@ -758,19 +762,6 @@ export const exploreReducer = (state = initialExploreState, action: HigherOrderA
[
ExploreId
.
right
]:
updateChildRefreshState
(
rightState
,
action
.
payload
,
ExploreId
.
right
),
};
}
case
resetExploreAction
.
type
:
{
const
leftState
=
state
[
ExploreId
.
left
];
const
rightState
=
state
[
ExploreId
.
right
];
stopQueryState
(
leftState
.
querySubscription
);
stopQueryState
(
rightState
.
querySubscription
);
return
{
...
state
,
[
ExploreId
.
left
]:
updateChildRefreshState
(
leftState
,
action
.
payload
,
ExploreId
.
left
),
[
ExploreId
.
right
]:
updateChildRefreshState
(
rightState
,
action
.
payload
,
ExploreId
.
right
),
};
}
}
if
(
action
.
payload
)
{
...
...
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