Skip to content

Commit

Permalink
updated adminUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyakrishnai committed Nov 27, 2023
1 parent 8314d98 commit fdc6811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configs/OnboardingList.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function OnboardingListDefinition(props) {
state: {
isCompleted: (queries) => queries?.orders?.pendingOrders?.length < 1,
isActive: (queries) => queries?.orders?.ordersCount > 0,
url: (queries) => queries?.orders?.pendingOrders?.length !== 1 ? `${NewfoldRuntime.siteDetails?.url}/wp-admin/edit.php?post_type=shop_order` : `${NewfoldRuntime.siteDetails?.url}/wp-admin/post.php?post=${queries?.orders?.pendingOrders[0]?.id}&action=edit`
url: (queries) => queries?.orders?.pendingOrders?.length !== 1 ? `${RuntimeSdk.adminUrl('edit.php?post_type=shop_order')}` : RuntimeSdk.adminUrl(`post.php?post=${queries?.orders?.pendingOrders[0]?.id}&action=edit`)
},
shouldRender: (state) => NewfoldRuntime.isWoo && state.isActive,
actions: {
Expand Down

0 comments on commit fdc6811

Please sign in to comment.