Fix variable types

This commit is contained in:
Sebastian Hädrich 2025-06-26 03:49:06 +02:00 committed by GitHub
parent cce87b7f35
commit fc18ec8bc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,9 +77,9 @@ export const HashtagMenuController: React.FC = () => {
return; return;
} }
const hashtagUrl: URL = new URL('/filters', document.location) const hashtagUrl: URL = new URL('/filters', document.location.href)
hashtagUrl.searchParams.set('custom_filter[keywords_attributes][0][keyword]', target.text) hashtagUrl.searchParams.set('custom_filter[keywords_attributes][0][keyword]', target.text)
hashtagUrl.searchParams.set('custom_filter[keywords_attributes][0][whole_word]', 1) hashtagUrl.searchParams.set('custom_filter[keywords_attributes][0][whole_word]', '1')
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();