Skip to content

Commit 481e02a

Browse files
committed
fix(SnapshotEdit): 🐛 file validation requiring file even if snapshot has one
1 parent 58c5e59 commit 481e02a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vue/src/components/SnapshotEdit.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@
9999
:label="$t('file')"
100100
truncate-length="20"
101101
:rules="[
102-
file => !!(file && file.name && file.type === 'application/json') || $t('mandatory')
102+
file => !!snapshot.datafile ||
103+
!!(file && file.name && file.type === 'application/json') ||
104+
$t('mandatory')
103105
]"
104106
:required="isNew"
105107
@change="selectFile"

0 commit comments

Comments
 (0)