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

fix: stop row loaders if there is an error #440

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

flaminic
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Nov 14, 2024

Deploy Preview for dhis2-maintenance-app-beta ready!

Name Link
🔨 Latest commit ec3d921
🔍 Latest deploy log https://app.netlify.com/sites/dhis2-maintenance-app-beta/deploys/673609e2867b490008e5c537
😎 Deploy Preview https://deploy-preview-440--dhis2-maintenance-app-beta.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@Birkbjo Birkbjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, LGTM

const isFiltering = !!identifiableFilter
const hasErrored = queries.find((query) => query.error) !== undefined
Copy link
Member

@Birkbjo Birkbjo Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor, almost don't want to comment on this - but this would be a bit more Idiomatic.

Suggested change
const hasErrored = queries.find((query) => query.error) !== undefined
const hasErrored = queries.some((query) => query.isError)

@flaminic flaminic force-pushed the DHIS2-17848/stop-loading-on-error branch from 732c38e to ec3d921 Compare November 14, 2024 14:32
@flaminic flaminic merged commit 44a8080 into master Nov 14, 2024
10 checks passed
@flaminic flaminic deleted the DHIS2-17848/stop-loading-on-error branch November 14, 2024 14:37
dhis2-bot added a commit that referenced this pull request Nov 14, 2024
## [0.13.1](v0.13.0...v0.13.1) (2024-11-14)

### Bug Fixes

* stop row loaders if there is an error ([#440](#440)) ([44a8080](44a8080))
* **optionSetSelect:** fix optionSet crashing with initialValue ([#439](#439)) ([93b8d68](93b8d68))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 0.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants