Skip to content

Commit

Permalink
Fix issue where addQueryArgs is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Nov 17, 2023
1 parent 802de89 commit 4341019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/components/notifications/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { addQueryArgs } from '@wordpress/url';
import { default as Notification } from '../notification/';

/**
Expand Down Expand Up @@ -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 }
)
Expand Down

0 comments on commit 4341019

Please sign in to comment.