Skip to content

Commit 55092aa

Browse files
authored
fix(registration): fixed schema response (#659)
1 parent 48c1506 commit 55092aa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/app/features/registry/pages/registry-overview/registry-overview.component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,12 @@ export class RegistryOverviewComponent {
122122
(r) => r.reviewsState === RevisionReviewStates.RevisionInProgress
123123
);
124124

125-
const schemaResponses =
126-
(this.isModeration
127-
? registry?.schemaResponses
128-
: registry?.schemaResponses?.filter(
129-
(r) => r.reviewsState === RevisionReviewStates.Approved || this.hasAdminAccess()
130-
)) || [];
125+
const schemaResponses = registry?.schemaResponses || [];
131126

132127
if (index !== null) {
133128
return schemaResponses[index];
134129
}
130+
135131
return null;
136132
});
137133

0 commit comments

Comments
 (0)