Skip to content

Commit 33c20d7

Browse files
author
Petr Kachanovsky
committed
fix: correct showIn type in user resource
1 parent 9e6561a commit 33c20d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/modules/restApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
126126
userResource.dataSourceColumns.push({
127127
name: this.adminforth.config.auth.passwordHashField,
128128
backendOnly: true,
129-
showIn: Object.values(AdminForthResourcePages).reduce((acc, page) => { return { ...acc, [page]: false } }, {}),
129+
showIn: Object.values(AdminForthResourcePages).reduce((acc, page) => { return { ...acc, [page]: false } }, {} as ShowInResolved),
130130
type: AdminForthDataTypes.STRING,
131131
});
132132
console.log('Adding passwordHashField to userResource', userResource)

0 commit comments

Comments
 (0)