Skip to content

Commit

Permalink
Fix small issue related to identifiers in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Dec 9, 2024
1 parent 53f67d5 commit 0029813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export const schemeFetchPromise = fetch(
scheme._registry = registries.find(registry => registry._api?.status === scheme.REGISTRY?.status)
// If there's an identifier with the current namespace, use it as the main identifier
const identifier = (scheme.identifier || []).find(i => i.startsWith(config.namespace))
if (identifier) {
scheme.identifier.push(scheme.uri)
if (identifier && scheme.uri !== identifier) {
scheme.identifier = scheme.identifier.filter(i => i !== identifier).concat(scheme.uri)
scheme.uri = identifier
}
return scheme
Expand Down

0 comments on commit 0029813

Please sign in to comment.