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

print broken on devel #6761

Closed
BacLuc opened this issue Jan 25, 2025 · 2 comments · Fixed by #6762
Closed

print broken on devel #6761

BacLuc opened this issue Jan 25, 2025 · 2 comments · Fixed by #6762
Assignees

Comments

@BacLuc
Copy link
Contributor

BacLuc commented Jan 25, 2025

Image

Copy link

sentry-io bot commented Jan 26, 2025

Sentry Issue: ECAMP3-PRINT-66

@BacLuc
Copy link
Contributor Author

BacLuc commented Jan 26, 2025

The error is:
fallback[locale].filter is not a function or its return value is not iterable

  let fallbackLocales = [];
  if (isArray(fallback)) {
    fallbackLocales = fallback;
  } else if (isObject(fallback)) {
    const targets = [...locales, "default"];
    for (const locale of targets) {
      if (fallback[locale]) {
        fallbackLocales = [...fallbackLocales, ...fallback[locale].filter(Boolean)];
      }
    }
  } else if (isString(fallback) && locales.every((locale) => locale !== fallback)) {
    fallbackLocales.push(fallback);
  }
  return fallbackLocales;
}

BacLuc added a commit to BacLuc/ecamp3 that referenced this issue Jan 26, 2025
This fixes:
fallback[locale].filter is not a function or its return value is not iterable

Fixes ecamp#6761
@BacLuc BacLuc self-assigned this Jan 26, 2025
BacLuc added a commit to BacLuc/ecamp3 that referenced this issue Feb 6, 2025
This fixes:
fallback[locale].filter is not a function or its return value is not iterable

Fixes ecamp#6761
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant