Skip to content

Commit b75587c

Browse files
Fix [Artifacts] Version history items without tags fail to open (#2975)
1 parent 3c221af commit b75587c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/artifacts.util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ illegal under applicable law, and the grant of the foregoing license
1717
under the Apache 2.0 license is conditioned upon your compliance with
1818
such restriction.
1919
*/
20-
import { cloneDeep, debounce, isEmpty } from 'lodash'
20+
import { cloneDeep, debounce, isEmpty, isNil } from 'lodash'
2121

2222
import artifactApi from '../api/artifacts-api'
2323
import {
@@ -217,7 +217,7 @@ export const setFullSelectedArtifact = debounce(
217217
const { db_key, tree, tag, iter, uid } = selectedArtifactMin
218218
const fetchArtifactData = getArtifactFetchMethod(tab)
219219

220-
if (paramsUid === uid && paramsTag === tag) {
220+
if (paramsUid === uid && (paramsTag === tag || (isNil(paramsTag) && isNil(tag)))) {
221221
dispatch(fetchArtifactData({ projectName, artifactName: db_key, uid, tree, tag, iter }))
222222
.unwrap()
223223
.then(artifact => {

0 commit comments

Comments
 (0)