@lvce-editor/extension-search-view 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2467,6 +2467,9 @@ const handleClick = async (state, index) => {
|
|
|
2467
2467
|
minLineY
|
|
2468
2468
|
} = state;
|
|
2469
2469
|
const actualIndex = index + minLineY;
|
|
2470
|
+
if (actualIndex < 0 || actualIndex >= items.length) {
|
|
2471
|
+
return state;
|
|
2472
|
+
}
|
|
2470
2473
|
const extension = items[actualIndex];
|
|
2471
2474
|
const uri = getExtensionDetailUri(extension.id);
|
|
2472
2475
|
await openUri(uri);
|