@@ -415,30 +415,26 @@ struct MainEditorContentView: View {
415415 )
416416 }
417417 } else {
418- if tab. isExecuting && tab. resultColumns. isEmpty && tab. lastExecutedAt == nil {
419- DataGridSkeletonView ( )
420- } else {
421- // Filter panel (collapsible, above data grid)
422- if filterStateManager. isVisible && tab. tabType == . table {
423- FilterPanelView (
424- filterState: filterStateManager,
425- columns: tab. resultColumns,
426- primaryKeyColumn: changeManager. primaryKeyColumn,
427- databaseType: connection. type,
428- onApply: onApplyFilters,
429- onUnset: onClearFilters
430- )
431- Divider ( )
432- }
418+ // Filter panel (collapsible, above data grid)
419+ if filterStateManager. isVisible && tab. tabType == . table {
420+ FilterPanelView (
421+ filterState: filterStateManager,
422+ columns: tab. resultColumns,
423+ primaryKeyColumn: changeManager. primaryKeyColumn,
424+ databaseType: connection. type,
425+ onApply: onApplyFilters,
426+ onUnset: onClearFilters
427+ )
428+ Divider ( )
429+ }
433430
434- if tab. tabType == . query && !tab. resultColumns. isEmpty
435- && tab. resultRows. isEmpty && tab. lastExecutedAt != nil
436- && !tab. isExecuting && !filterStateManager. hasAppliedFilters
437- {
438- emptyResultView ( executionTime: tab. activeResultSet? . executionTime ?? tab. executionTime)
439- } else {
440- dataGridView ( tab: tab)
441- }
431+ if tab. tabType == . query && !tab. resultColumns. isEmpty
432+ && tab. resultRows. isEmpty && tab. lastExecutedAt != nil
433+ && !tab. isExecuting && !filterStateManager. hasAppliedFilters
434+ {
435+ emptyResultView ( executionTime: tab. activeResultSet? . executionTime ?? tab. executionTime)
436+ } else {
437+ dataGridView ( tab: tab)
442438 }
443439 }
444440 }
0 commit comments