This commit is contained in:
Andras Schmelczer 2026-05-14 20:42:48 +01:00
parent 273d7a83ee
commit 084117cea8
48 changed files with 2283 additions and 890 deletions

View file

@ -102,12 +102,12 @@ export function useSavedSearches(userId: string | null) {
}, [userId, fetchRecords, startPolling, stopPolling]);
const saveSearch = useCallback(
async (name: string) => {
async (name: string, paramsOverride?: string) => {
if (!userId) return;
setSaving(true);
setError(null);
try {
const params = window.location.search.replace(/^\?/, '');
const params = paramsOverride ?? window.location.search.replace(/^\?/, '');
// Create record immediately without screenshot
const formData = new FormData();