pl-fe: it doesn't actually work so

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-07-17 14:51:45 +02:00
parent 26af36b610
commit d4c9910fc4

View File

@ -21,7 +21,7 @@ const Reports: React.FC = () => {
const intl = useIntl();
const [params, setParams] = useSearchParams();
const resolved = params.get('resolved');
const resolved = params.get('resolved') as any as boolean;
const accountId = params.get('account_id') || undefined;
const targetAccountId = params.get('target_account_id') || undefined;
@ -29,7 +29,7 @@ const Reports: React.FC = () => {
const { account: targetAccount } = useAccount(targetAccountId);
const { data: reportIds = [], isPending } = useReports({
resolved: resolved === 'true' ? true : resolved === 'false' ? false : undefined,
resolved,
account_id: accountId,
target_account_id: targetAccountId,
});