Skip to content

Commit 48c6075

Browse files
committed
update urls
1 parent 335b15e commit 48c6075

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

e2e/test-utils/stackable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class StackableFixture {
1717
}
1818

1919
const finishedCallback = async ( request: Request ) => {
20-
if ( ( request.url().includes( 'stackable/v3/settings' ) || request.url().includes( 'stackable%2Fv3%2Fsettings' ) ) && request.method() === 'GET' ) {
20+
if ( request.url().includes( 'stackable/v3/settings' ) && request.method() === 'GET' ) {
2121
try {
2222
let settings = null
2323
await test.step( 'Wait for Stackable settings to load', async () => {
@@ -38,7 +38,7 @@ export class StackableFixture {
3838
}
3939
}
4040
const failedCallback = async ( request: Request ) => {
41-
if ( ( request.url().includes( 'stackable/v3/settings' ) || request.url().includes( 'stackable%2Fv3%2Fsettings' ) ) && request.method() === 'GET' ) {
41+
if ( request.url().includes( 'stackable/v3/settings' ) && request.method() === 'GET' ) {
4242
cleanup()
4343
throw Error( 'Failed to get Stackable settings' )
4444
}

src/util/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const fetchSettings = () => {
5555
if ( ! fetchingPromise ) {
5656
fetchingPromise = loadPromise.then( async () => {
5757
const response = await apiFetch( {
58-
path: `/stackable/v3/settings`,
58+
path: '/stackable/v3/settings',
5959
method: 'GET',
6060
} )
6161
fetchingPromise = null

0 commit comments

Comments
 (0)