Skip to content

Commit 242cbaa

Browse files
committed
fix opening new model
1 parent 0695701 commit 242cbaa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wavespeed-desktop",
3-
"version": "1.0.49",
3+
"version": "1.0.50",
44
"description": "WaveSpeedAI Desktop Application - A playground for AI models",
55
"main": "./out/main/index.js",
66
"author": {

src/pages/ModelsPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,10 @@ export function ModelsPage() {
355355

356356
// Memoized handlers
357357
const handleOpenPlayground = useCallback((modelId: string) => {
358+
const model = models.find(m => m.model_id === modelId)
359+
createTab(model)
358360
navigate(`/playground/${encodeURIComponent(modelId)}`)
359-
}, [navigate])
361+
}, [models, createTab, navigate])
360362

361363
const handleOpenInNewTab = useCallback((e: React.MouseEvent, modelId: string) => {
362364
e.stopPropagation()

0 commit comments

Comments
 (0)