We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 265b78a commit 6061aa0Copy full SHA for 6061aa0
backend/controllers/parametersController.js
@@ -20,7 +20,7 @@ const updateParameters = async (req, res) => {
20
}
21
22
// Check if preset is existing
23
- if (!parameters.parameters.hasOwnProperty(preset_name)) {
+ if (!Object.prototype.hasOwnProperty.call(parameters.parameters, preset_name)) {
24
return res.status(400).json({ message: "Preset is not found" });
25
26
0 commit comments