Skip to content

Commit

Permalink
🐛 Don't make Alchemy#getResource() helper method overwrite params data
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Mar 10, 2024
1 parent 81ed744 commit b5e5394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Add association aliases as a meta field to model schemas
* Add `should_add_exports()` SCSS function
* Add `postcss-prune-var` dependency to remove unused variables from CSS files
* Don't make `Alchemy#getResource()` helper method overwrite params data

## 1.4.0-alpha.3 (2024-02-25)

Expand Down
6 changes: 4 additions & 2 deletions lib/app/helper/alchemy_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Alchemy.setStatic(function onScene(scene, options) {
*
* @author Jelle De Loecker <[email protected]>
* @since 0.0.1
* @version 1.3.21
* @version 1.4.0
*
* @param {string|Object} options
* @param {Object} data
Expand Down Expand Up @@ -63,7 +63,9 @@ Alchemy.setMethod(function getResource(options, data, callback) {
callback = data;
data = null;
} else {
options.params = data;
if (data && !options.params) {
options.params = data;
}
}

let pledge;
Expand Down

0 comments on commit b5e5394

Please sign in to comment.