Skip to content

Commit 7135818

Browse files
committed
fix:added await in reset function and removed type for app and extension field
1 parent 5f2d302 commit 7135818

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/src/services/contentMapper.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ const updateContentMapper = async (req: Request) => {
12001200
)) as number;
12011201

12021202
try {
1203-
ProjectModelLowdb.update((data: any) => {
1203+
await ProjectModelLowdb.update((data: any) => {
12041204
data.projects[projectIndex].mapperKeys = content_mapper;
12051205
data.projects[projectIndex].updated_at = new Date().toISOString();
12061206
});

ui/src/components/ContentMapper/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ const Fields: MappingFields = {
205205
'app':{
206206
label: 'Marketplace app',
207207
options: {'Marketplace app':'app'},
208-
type:'app'
208+
type:''
209209
},
210210
'extension':{
211211
label: 'Extension',
212212
options: {'Extension':'extension'},
213-
type:'extension'
213+
type:''
214214
}
215215

216216
}

0 commit comments

Comments
 (0)