(queryId: string, params: QueryVersion | QueryParams)
| 61 | } |
| 62 | |
| 63 | createEditorSnapshot(queryId: string, params: QueryVersion | QueryParams) { |
| 64 | const ts = new Date().toISOString() |
| 65 | const id = nanoid() |
| 66 | const version = {ts, version: id, ...params} |
| 67 | this.dispatch(QueryVersions.at(queryId).create(version)) |
| 68 | return version |
| 69 | } |
| 70 | |
| 71 | getSource(id: string) { |
| 72 | if (SessionQueries.find(this.getState(), id)) return "session" |
no test coverage detected