fix(files): unify context menu trigger on mobile and desktop (#396)
* refactor: use explicit menu button for file row context menu * fix: ensure model variants are computed from current source only
This commit is contained in:
@@ -522,7 +522,7 @@ export const ModelControls: React.FC<ModelControlsProps> = ({
|
||||
// currentProviderId/currentModelId; include providers to avoid stale variants.
|
||||
const availableVariants = React.useMemo(() => {
|
||||
return getCurrentModelVariants();
|
||||
}, [getCurrentModelVariants, currentProviderId, currentModelId, providers]);
|
||||
}, [getCurrentModelVariants]);
|
||||
const hasVariants = availableVariants.length > 0;
|
||||
|
||||
const costRows = [
|
||||
|
||||
Reference in New Issue
Block a user