Skip to content

Commit

Permalink
fix(dataMapper): Fix issue loading schemas in stand alone (#4642)
Browse files Browse the repository at this point in the history
  • Loading branch information
hartra344 committed Apr 18, 2024
1 parent 79d8e20 commit 294ca75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/Standalone/src/dataMapperV1/state/SchemaDataLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const schemaDataLoaderSlice = createSlice({
const loadSchemaFromMock = async (resourcePath: string): Promise<DataMapSchema | undefined> => {
try {
const schema: DataMapSchema = await import(`../schemas/${resourcePath.split('.')[0]}.json`);
return schema;
return (schema as any)?.default ?? schema;
} catch (ex) {
console.error(ex);
return undefined;
Expand Down

0 comments on commit 294ca75

Please sign in to comment.