@@ -22,7 +22,7 @@ import {
2222import type { QueryResult } from '../../../../store/reducers/query/types' ;
2323import { setQueryAction } from '../../../../store/reducers/queryActions/queryActions' ;
2424import { selectShowPreview , setShowPreview } from '../../../../store/reducers/schema/schema' ;
25- import type { EPathType } from '../../../../types/api/schema' ;
25+ import type { EPathSubType , EPathType } from '../../../../types/api/schema' ;
2626import type { QueryAction } from '../../../../types/store/query' ;
2727import { cn } from '../../../../utils/cn' ;
2828import {
@@ -70,11 +70,12 @@ interface QueryEditorProps {
7070 changeUserInput : ( arg : { input : string } ) => void ;
7171 theme : string ;
7272 type ?: EPathType ;
73+ subType ?: EPathSubType ;
7374}
7475
7576export default function QueryEditor ( props : QueryEditorProps ) {
7677 const dispatch = useTypedDispatch ( ) ;
77- const { tenantName, path, type, theme, changeUserInput} = props ;
78+ const { tenantName, path, type, theme, changeUserInput, subType } = props ;
7879 const savedPath = useTypedSelector ( selectTenantPath ) ;
7980 const result = useTypedSelector ( selectResult ) ;
8081 const historyQueries = useTypedSelector ( selectQueriesHistory ) ;
@@ -270,6 +271,7 @@ export default function QueryEditor(props: QueryEditorProps) {
270271 onExpandResultHandler = { onExpandResultHandler }
271272 onCollapseResultHandler = { onCollapseResultHandler }
272273 type = { type }
274+ subType = { subType }
273275 theme = { theme }
274276 key = { result ?. queryId }
275277 result = { result }
@@ -291,6 +293,7 @@ interface ResultProps {
291293 onExpandResultHandler : VoidFunction ;
292294 onCollapseResultHandler : VoidFunction ;
293295 type ?: EPathType ;
296+ subType ?: EPathSubType ;
294297 theme : string ;
295298 result ?: QueryResult ;
296299 tenantName : string ;
@@ -304,6 +307,7 @@ function Result({
304307 onExpandResultHandler,
305308 onCollapseResultHandler,
306309 type,
310+ subType,
307311 theme,
308312 result,
309313 tenantName,
@@ -313,7 +317,7 @@ function Result({
313317 tableSettings,
314318} : ResultProps ) {
315319 if ( showPreview ) {
316- return < PreviewContainer database = { tenantName } path = { path } type = { type } /> ;
320+ return < PreviewContainer database = { tenantName } path = { path } type = { type } subType = { subType } /> ;
317321 }
318322
319323 if ( result ) {
0 commit comments