Merge branch 'main' into moretranslation

This commit is contained in:
mickr777
2023-09-15 14:06:26 +10:00
committed by GitHub
3 changed files with 5 additions and 7 deletions

View File

@ -86,7 +86,7 @@ export const store = configureStore({
.concat(autoBatchEnhancer());
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware()
getDefaultMiddleware({ immutableCheck: false })
.concat(api.middleware)
.concat(dynamicMiddlewares)
.prepend(listenerMiddleware.middleware),

View File

@ -26,7 +26,8 @@ export const receivedOpenAPISchema = createAsyncThunk(
'nodes/receivedOpenAPISchema',
async (_, { rejectWithValue }) => {
try {
const response = await fetch(`openapi.json`);
const url = [window.location.origin, 'openapi.json'].join('/');
const response = await fetch(url);
const openAPISchema = await response.json();
const schemaJSON = JSON.parse(