fix: broken component import in prod

This commit is contained in:
liyasthomas
2021-08-24 09:14:46 +05:30
parent f20fed444a
commit 12c28f4efc
75 changed files with 254 additions and 153 deletions

View File

@@ -5,9 +5,11 @@ import { settingsStore } from "~/newstore/settings"
import {
graphqlHistoryStore,
HISTORY_LIMIT,
RESTHistoryEntry,
restHistoryStore,
setGraphqlHistoryEntries,
setRESTHistoryEntries,
translateToNewRESTHistory,
} from "~/newstore/history"
type HistoryFBCollections = "history" | "graphqlHistory"
@@ -167,12 +169,12 @@ export function initHistory() {
.orderBy("updatedOn", "desc")
.limit(HISTORY_LIMIT)
.onSnapshot((historyRef) => {
const history: any[] = []
const history: RESTHistoryEntry[] = []
historyRef.forEach((doc) => {
const entry = doc.data()
entry.id = doc.id
history.push(entry)
history.push(translateToNewRESTHistory(entry))
})
loadedRESTHistory = false

View File

@@ -33,6 +33,7 @@ export type HoppRESTReqBody =
| HoppRESTReqBodyFormData
| {
contentType: null
body: null
}
export interface HoppRESTRequest {