Convert local function to arrow function to fix context

Bug: T367366
Change-Id: Ie6554c869ce804445b6678d74eee9550b9dc82f9
(cherry picked from commit 45ba7840da)
This commit is contained in:
Ed Sanders 2024-06-13 15:59:19 +01:00 committed by Jforrester
parent e32df234c0
commit ab3df02c11

View file

@ -256,7 +256,7 @@
// Success
( data ) => {
const allModels = { local: localListModel },
createBundledNotification = function ( modelName, rawBundledNotifData ) {
createBundledNotification = ( modelName, rawBundledNotifData ) => {
const bundleNotifData = this.createNotificationData( rawBundledNotifData );
bundleNotifData.bundled = true;
bundleNotifData.modelName = modelName;