fix: wrong condition
This commit is contained in:
parent
2f9d84d892
commit
b9201d79ed
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
|
||||||
const _idx = file.findIndex(
|
const _idx = file.findIndex(
|
||||||
(v) => v.group === dropdownList?.[i].value,
|
(v) => v.group === dropdownList?.[i].value,
|
||||||
);
|
);
|
||||||
if (_idx) {
|
if (_idx !== -1) {
|
||||||
currentIndex = _idx;
|
currentIndex = _idx;
|
||||||
} else {
|
} else {
|
||||||
file.push({
|
file.push({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue