mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
removing revision param from registry image url
This commit is contained in:
parent
d6963d1978
commit
93c363c9e9
@ -15,7 +15,7 @@ export function Registry() {
|
||||
|
||||
const registryImage = (item) => {
|
||||
if (actions?.getRegistryImageUrl) {
|
||||
return actions.getRegistryImageUrl(item.guid, item.revision);
|
||||
return actions.getRegistryImageUrl(item.guid);
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
@ -43,8 +43,8 @@ export function useRegistry() {
|
||||
updateState({ busy: false });
|
||||
}
|
||||
},
|
||||
getRegistryImageUrl: (guid, revision) => {
|
||||
return getListingImageUrl(state.server, guid, revision);
|
||||
getRegistryImageUrl: (guid) => {
|
||||
return getListingImageUrl(state.server, guid);
|
||||
},
|
||||
select: (contact) => {
|
||||
navigate(`/user/contact/${contact.guid}`, { state: contact });
|
||||
|
@ -1,5 +1,5 @@
|
||||
export function getListingImageUrl(server, guid, revision) {
|
||||
return `https://${server}/account/listing/${guid}/image?revision=${revision}`
|
||||
export function getListingImageUrl(server, guid) {
|
||||
return `https://${server}/account/listing/${guid}/image`
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user