From 0029813f45eb44deb86cd1e5d194ba22ed127a10 Mon Sep 17 00:00:00 2001 From: Stefan Peters Date: Mon, 9 Dec 2024 14:44:57 +0100 Subject: [PATCH] Fix small issue related to identifiers in frontend --- src/client/store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/store.js b/src/client/store.js index 9164f86..5076285 100644 --- a/src/client/store.js +++ b/src/client/store.js @@ -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