revert(filter_changes): adding the filter function was causing nested queries to not load the newly set values (#18731)

pull/18641/head
Ariel Salem 2020-06-25 10:35:26 -07:00 committed by GitHub
parent 7f380f52bf
commit cc28e2fd33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -126,13 +126,7 @@ export const hydrateVariables = (skipCache?: boolean) => async (
) => {
const state = getState()
const org = getOrg(state)
const vars = getVariablesFromState(state).filter(
v => v.status && v.status !== RemoteDataState.Done
)
if (!vars.length) {
return
}
const vars = getVariablesFromState(state)
const hydration = hydrateVars(vars, getAllVariablesFromState(state), {
orgID: org.id,