Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Reports Tab broken #4307

Closed
1 task done
d-whitaker opened this issue Feb 6, 2025 · 6 comments
Closed
1 task done

[Bug]: Reports Tab broken #4307

d-whitaker opened this issue Feb 6, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@d-whitaker
Copy link

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Upgraded to 25.2.0 on Windows 11.

Reports Tab now just keeps flashing, as it tries to display,

How can we reproduce the issue?

Upgrade to 25.2.0.
Click on Reports Tab.

See error.

Where are you hosting Actual?

None

What browsers are you seeing the problem on?

Desktop App (Electron)

Operating System

Windows 11

@d-whitaker d-whitaker added the bug Something isn't working label Feb 6, 2025
@jfdoming
Copy link
Member

jfdoming commented Feb 6, 2025

Have you selected a non-English language?

@Kurokha
Copy link

Kurokha commented Feb 6, 2025

I can confirm that this only happens with custom reports and a language other than English (tested with Dutch and German).

The issue also occurs with Actual hosted on a server. Console Error in the reports tab ist always pretty much the same, "Error: Unknown function: $undefined". E.g.:

Error: Unknown function: $undefined

Expression stack:
  {"$undefined":"$"}
  {"date":{"$transform":"$undefined","$gte":"2024-11-01"}}
  filter([
    {
      "$and": []
    },
    {
      "$and": [
        {
          "date": {
            "$transform": "$undefined",
            "$gte": "2024-11-01"
          }
        },
        {
          "date": {
            "$transform": "$undefined",
            "$lte": "2025-02-28"
          }
        }
      ]
    },
    {
      "amount": {
        "$lt": 0
      }
    }
  ])

When trying to edit a custom report, the App crashes and gives this error:

Ne@https://actual.domain.com/static/js/index.hbe7bUd-.js:89:240604 et@https://actual.domain.com/static/js/index.hbe7bUd-.js:111:14373 rV@https://actual.domain.com/static/js/ReportRouter.f83bpIx-.chunk.js:76:26236 DE@https://actual.domain.com/static/js/index.hbe7bUd-.js:47:19542 X8@https://actual.domain.com/static/js/index.hbe7bUd-.js:49:44079 Y8@https://actual.domain.com/static/js/index.hbe7bUd-.js:49:39803 vee@https://actual.domain.com/static/js/index.hbe7bUd-.js:49:39730 zx@https://actual.domain.com/static/js/index.hbe7bUd-.js:49:39578 Zk@https://actual.domain.com/static/js/index.hbe7bUd-.js:49:35941 V8@https://actual.domain.com/static/js/index.hbe7bUd-.js:49:34888 T@https://actual.domain.com/static/js/index.hbe7bUd-.js:34:1553 N@https://actual.domain.com/static/js/index.hbe7bUd-.js:34:1911 EventHandlerNonNull*@https://actual.domain.com/static/js/index.hbe7bUd-.js:34:2077 @https://actual.domain.com/static/js/index.hbe7bUd-.js:34:3813

@schmurian
Copy link

I switched to english, but the same error occurs, where the app crashes:

TypeError: Cannot read properties of null (reading 'map') at Ne (http://ip:5006/static/js/index.hbe7bUd-.js:89:240614) at et (http://ip:5006/static/js/index.hbe7bUd-.js:111:14373) at tV (http://ip:5006/static/js/ReportRouter.f83bpIx-.chunk.js:76:24346) at DE (http://ip:5006/static/js/index.hbe7bUd-.js:47:19542) at X8

@schmurian
Copy link

After downgrading and upgrading the app it works.

@youngcw
Copy link
Member

youngcw commented Feb 6, 2025

This should be fixed on v25.2.1. Can someone confirm? It may take a day to get the update if pulled from the Microsoft store.

@Kurokha
Copy link

Kurokha commented Feb 7, 2025

It's indeed fixed with the server version. Loading and editing custom reports with a language other than English works without errors. Thanks!

@youngcw youngcw closed this as completed Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants