Skip to content

[Bug]: Intermittent & incorrect error about being unable to run page load actions when there are no page load action configured #21189

@ramsaptami

Description

@ramsaptami

Is there an existing issue for this?

  • I have searched the existing issues

Description

When a JS object with page load settings is deleted and replaced with another object with the same name but without page load settings, then performing page level actions like clone or delete causes an incorrect message to show up saying: Failed to execute actions during page load

Steps To Reproduce

  1. Create a page and add a JS object, set myFun1 to run on page load. Now JSObject1.myFun1 now exists under pageLoadActions
  2. Add a second object, JSObject2
  3. Delete both objects created
  4. Add a new JSObject1
  5. Clone the page and notice an incorrect error show up
  6. If above step fails, repeat steps above or delete cloned page to notice the error

Successfully deleting the object that had page load setting (Step 3)
image

Page1 clone action - page does not have any onPageLoad actions
API: https://release.app.appsmith.com/api/v1/pages/clone/6405b67afec54a0ec59a44bf
image

Response after deleting Page2 from video
API: https://release.app.appsmith.com/api/v1/pages/6405b67afec54a0ec59a44bf
image

image

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Cloud

Metadata

Metadata

Assignees

Labels

BackendThis marks the issue or pull request to reference server codeBugSomething isn't workingEntity RefactorIssues related to refactor logicIntegrations ProductIssues related to a specific integrationMediumIssues that frustrate users due to poor UXOnPageLoadOnPageLoad issues on functions and queriesProductionQuery & JS PodIssues related to the query & JS Pod

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions