Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Commit ab0626c

Browse files
committed
fixed mac new query tab not opening bug
1 parent ee659f7 commit ab0626c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

internal/desktop/events/tabs.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ func (TabsEventListeners) CreateNewTab(ctx context.Context) {
2828
modelschema := args[3].(string)
2929
modelname := args[4].(string)
3030
queryID := args[5].(string)
31-
query := args[6].(string)
31+
query := ""
32+
if str, ok := args[6].(string); ok {
33+
query = str
34+
}
3235
tab, err := tabController.CreateTab(dbConnectionId, tabType, modelschema, modelname, queryID, query)
3336
if err != nil {
3437
runtime.EventsEmit(ctx, responseEventName, map[string]interface{}{

0 commit comments

Comments
 (0)