fix: wrong condition

This commit is contained in:
Methapon Metanipat 2024-08-28 16:38:52 +07:00
parent 2f9d84d892
commit b9201d79ed

View file

@ -122,7 +122,7 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
const _idx = file.findIndex(
(v) => v.group === dropdownList?.[i].value,
);
if (_idx) {
if (_idx !== -1) {
currentIndex = _idx;
} else {
file.push({