Skip to content

Commit 7f539f6

Browse files
authored
Merge pull request #557 from SUSE/fix-profile
Fix user profile page
2 parents 7370d74 + d9a7def commit 7f539f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/frontend/packages/store/src/actions/user-profile.actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const UPDATE_USERPROFILE = '[UserProfile] Update';
88
export const UPDATE_USERPASSWORD = '[UserPassword] Update';
99

1010
abstract class BaseProfileAction implements EntityRequestAction {
11-
static guid = 'userProfile';
11+
static guid = userProfileEntityType;
1212
guid = BaseProfileAction.guid;
1313
entityType = userProfileEntityType;
1414
endpointType = STRATOS_ENDPOINT_TYPE;

src/frontend/packages/store/src/helpers/stratos-entity-factory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const EndpointSchema = new StratosEntitySchema(endpointEntityType, 'guid');
3030
entityCache[endpointEntityType] = EndpointSchema;
3131

3232
const UserProfileInfoSchema = new StratosEntitySchema(userProfileEntityType, 'id');
33+
UserProfileInfoSchema.getId = () => userProfileEntityType;
3334
entityCache[userProfileEntityType] = UserProfileInfoSchema;
3435

3536
const ApiKeySchema = new StratosEntitySchema(apiKeyEntityType, 'guid');

0 commit comments

Comments
 (0)