Skip to content

fix(createResource): onError() called thrice#488

Open
siduck wants to merge 1 commit intomainfrom
fix-duplicate-onerror
Open

fix(createResource): onError() called thrice#488
siduck wants to merge 1 commit intomainfrom
fix-duplicate-onerror

Conversation

@siduck
Copy link
Copy Markdown
Contributor

@siduck siduck commented Dec 1, 2025

Closes: #67

onError() is already being called inside resources.js, no need to call it in frappeRequest.js

Screen.Recording.2025-12-01.at.4.06.29.PM.mov

@siduck siduck force-pushed the fix-duplicate-onerror branch from b5baf21 to 5670f87 Compare December 1, 2025 10:37
@netchampfaris
Copy link
Copy Markdown
Contributor

@siduck

This fix might not be correct. frappeRequest is supposed to handle onerror callback if used separately. maybe we add a flag if it is handled already in createResource.

idlip added a commit to idlip/fossunited that referenced this pull request Feb 4, 2026
- Use frappeRequest for calling api function so it shows errors once
  ^ frappe/frappe-ui#488

- Add table toggle button for showing list view
idlip added a commit to fossunited/fossunited that referenced this pull request Feb 4, 2026
…y during event days (#1405)

* api(rsvp-insight): show_checkins if today is event days

* dashboard(rsvp-insight): add table toggle + enable checkin during event

- Use frappeRequest for calling api function so it shows errors once
  ^ frappe/frappe-ui#488

- Add table toggle button for showing list view

* fix minor lints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: onError in resource is getting called twice

2 participants