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

Resolve destroy page "propParam is not defined" error #1162

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

jwkratz
Copy link
Contributor

@jwkratz jwkratz commented Sep 15, 2020

This PR resolves the propParam is not defined error currently thrown when running yarn rw destroy page PageName.

When instantiating the list of page files to destroy, not all template variables were being passed in. This caused lodash to throw an exception when attempting to interpolate the page template.

The proposed fix is to include the default page template variables when instantiating the destroy file list to ensure that lodash can successfully interpolate the template.

Closes #1037

Thanks!

@peterp
Copy link
Contributor

peterp commented Sep 17, 2020

@jwkratz Wooh! Thanks!

@peterp peterp added this to the Next Release milestone Sep 17, 2020
@peterp peterp added bug/confirmed We have confirmed this is a bug next release labels Sep 17, 2020
@peterp peterp merged commit 33d7f5c into redwoodjs:main Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/confirmed We have confirmed this is a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Destory pages does not work - "propParam is not defined"
2 participants