diff --git a/js/routeHandlers.js b/js/routeHandlers.js index c856e2de..04145f79 100644 --- a/js/routeHandlers.js +++ b/js/routeHandlers.js @@ -477,7 +477,7 @@ module.exports.saveStrings = async function( request, response ) { // Loop through the string descriptions in the post request, saving each one. for ( const stringDescription in request.body ) { - if ( !Object.hasOwnProperty.call( request.body, stringDescription ) ) { + if ( !Object.hasOwn( request.body, stringDescription ) ) { continue; }