refac: url param tool_ids -> tools/tool-ids

This commit is contained in:
Timothy J. Baek 2024-10-06 20:41:56 -07:00
parent 3686cf7365
commit 58ca5e42c2

View File

@ -354,7 +354,11 @@
if ($page.url.searchParams.get('q')) {
prompt = $page.url.searchParams.get('q') ?? '';
selectedToolIds = ($page.url.searchParams.get('tool_ids') ?? '')
selectedToolIds = (
$page.url.searchParams.get('tools') ??
$page.url.searchParams.get('tool-ids') ??
''
)
.split(',')
.map((id) => id.trim())
.filter((id) => id);