@@ -54,7 +54,7 @@ import { PanelResizeHandle } from '@the-dev-tools/ui/resizable-panel';
5454import { Separator } from '@the-dev-tools/ui/separator' ;
5555import { tw } from '@the-dev-tools/ui/tailwind-literal' ;
5656import { TextField , useEditableTextState } from '@the-dev-tools/ui/text-field' ;
57- import { useMutate } from '~data-client' ;
57+ import { setQueryChild , useMutate } from '~data-client' ;
5858import {
5959 ColumnActionDelete ,
6060 columnActions ,
@@ -445,7 +445,16 @@ const ActionBar = () => {
445445 ) ;
446446
447447 for await ( const { example, node, version } of flowRun ( { flowId } ) ) {
448- if ( version ) void controller . set ( FlowVersionsEndpoint . schema . items . unshift , { flowId } , version ) ;
448+ if ( version ) {
449+ void setQueryChild (
450+ controller ,
451+ FlowVersionsEndpoint . schema . items ,
452+ 'unshift' ,
453+ transport ,
454+ { flowId } ,
455+ version ,
456+ ) ;
457+ }
449458
450459 if ( example ) {
451460 const { exampleId, responseId, versionId } = example ;
@@ -455,10 +464,14 @@ const ActionBar = () => {
455464 lastResponseId : responseId ,
456465 } satisfies Partial < ExampleEntity > ) ;
457466
458- void controller . set ( ExampleVersionsEndpoint . schema . items . unshift , { exampleId } , {
459- exampleId : versionId ,
460- lastResponseId : responseId ,
461- } satisfies Partial < ExampleVersionsItemEntity > ) ;
467+ void setQueryChild (
468+ controller ,
469+ ExampleVersionsEndpoint . schema . items ,
470+ 'unshift' ,
471+ transport ,
472+ { exampleId } ,
473+ { exampleId : versionId , lastResponseId : responseId } satisfies Partial < ExampleVersionsItemEntity > ,
474+ ) ;
462475 }
463476
464477 if ( node ) {
0 commit comments