From 4341019206a93255e32797adb19421c0cdd30935 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Fri, 17 Nov 2023 10:52:35 -0500 Subject: [PATCH] Fix issue where addQueryArgs is not defined --- assets/js/components/notifications/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/components/notifications/index.js b/assets/js/components/notifications/index.js index 303877e..a0dfe5c 100644 --- a/assets/js/components/notifications/index.js +++ b/assets/js/components/notifications/index.js @@ -1,3 +1,4 @@ +import { addQueryArgs } from '@wordpress/url'; import { default as Notification } from '../notification/'; /** @@ -30,7 +31,7 @@ const Notifications = ({methods, constants, ...props}) => { // on mount load all notifications from module api methods.useEffect(() => { methods.apiFetch( { - url: methods.addQueryArgs( + url: addQueryArgs( `${window.NewfoldRuntime.restUrl}newfold-notifications/v1/notifications`, { context: constants.context } )