File tree 1 file changed +10
-10
lines changed
shared/studio/tabs/dataview/state
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -317,22 +317,24 @@ export class DataInspector extends Model({
317
317
this . _updateRowCount ( ) ;
318
318
319
319
const updateFieldDisposer = reaction (
320
- ( ) => [ this . objectType ] as const ,
321
- ( [ objectType ] ) => {
320
+ ( ) => this . objectType ,
321
+ ( objectType ) => {
322
322
if ( objectType ) {
323
323
this . _updateFields ( ) ;
324
324
}
325
325
}
326
326
) ;
327
327
const refreshDataDisposer = reaction (
328
- ( ) => [ sessionStateCtx . get ( this ) ?. activeState ] ,
329
- ( ) => {
330
- this . omittedLinks . clear ( ) ;
331
- this . _refreshData ( true ) ;
328
+ ( ) => sessionStateCtx . get ( this ) ?. activeState ,
329
+ ( state ) => {
330
+ if ( state ) {
331
+ this . omittedLinks . clear ( ) ;
332
+ this . _refreshData ( true ) ;
333
+ }
332
334
}
333
335
) ;
334
336
const refreshSubtypesDataDisposer = reaction (
335
- ( ) => [ this . fields ] ,
337
+ ( ) => this . fields ,
336
338
( ) => {
337
339
this . omittedLinks . clear ( ) ;
338
340
this . _refreshData ( false , true ) ;
@@ -517,9 +519,7 @@ export class DataInspector extends Model({
517
519
518
520
@computed
519
521
get insertTypeNames ( ) {
520
- const objectType = dbCtx
521
- . get ( this ) !
522
- . schemaData ?. objects . get ( this . objectTypeId ) ;
522
+ const objectType = this . objectType ;
523
523
524
524
if ( ! objectType ) {
525
525
return [ ] ;
You can’t perform that action at this time.
0 commit comments