From 80d807e08a6d3148f973829c48fe633a760546c5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 20 Oct 2023 14:07:03 +1000 Subject: [PATCH] Fix stability search query --- ts/graphs/intervals.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ts/graphs/intervals.ts b/ts/graphs/intervals.ts index 55fbe0b9f..8b9af80ca 100644 --- a/ts/graphs/intervals.ts +++ b/ts/graphs/intervals.ts @@ -156,7 +156,10 @@ export function prepareIntervalData( function onClick(bin: Bin): void { const start = bin.x0!; const end = bin.x1! - 1; - const query = makeQuery(start, end); + let query = makeQuery(start, end); + if (fsrs) { + query = query.replace(/ivl/g, "s"); + } dispatch("search", { query }); }