refactor: use function declaration for asset selection

This commit is contained in:
Benjamin Lu
2026-01-29 16:50:15 -08:00
parent b7a320f9f4
commit 68341a047a

View File

@@ -486,7 +486,7 @@ watch(
{ immediate: true }
)
const handleAssetSelect = (asset: AssetItem, assets?: AssetItem[]) => {
function handleAssetSelect(asset: AssetItem, assets?: AssetItem[]) {
const assetList = assets ?? visibleAssets.value
const index = assetList.findIndex((a) => a.id === asset.id)
handleAssetClick(asset, index, assetList)