(queryId: string, versionId?: string)
| 5 | |
| 6 | export const push = |
| 7 | (queryId: string, versionId?: string): Thunk => |
| 8 | (dispatch, getState) => { |
| 9 | const sessionId = Current.getTabId(getState()) |
| 10 | const savedQuery = Queries.build(getState(), queryId) |
| 11 | const version = versionId || savedQuery?.latestVersionId() || "" |
| 12 | const entry = {queryId, version} |
| 13 | dispatch(SessionHistories.pushById({sessionId, entry})) |
| 14 | } |
| 15 | |
| 16 | export const replace = |
| 17 | (queryId: string, versionId?: string): Thunk => |
nothing calls this directly
no test coverage detected