File tree 4 files changed +11
-6
lines changed
4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -948,10 +948,13 @@ export class DataInspector extends Model({
948
948
return ;
949
949
}
950
950
951
- const dbState = dbCtx . get ( this ) ! ;
952
-
953
951
this . runningDataFetch ?. abortController . abort ( ) ;
954
952
953
+ const dbState = dbCtx . get ( this ) ;
954
+ if ( ! dbState ) {
955
+ return ;
956
+ }
957
+
955
958
this . runningDataFetch = { abortController : new AbortController ( ) , offset} ;
956
959
dbState . setLoadingTab ( DataView , true ) ;
957
960
Original file line number Diff line number Diff line change @@ -819,7 +819,6 @@ export class QueryEditor extends Model({
819
819
} ) ;
820
820
return { success : true , capabilities, status} ;
821
821
} catch ( e : any ) {
822
- console . error ( e ) ;
823
822
this . addHistoryCell ( {
824
823
queryData,
825
824
timestamp,
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ export function ModuleRenderer({
26
26
if ( isSticky ) {
27
27
const observer = new IntersectionObserver (
28
28
( [ e ] ) => {
29
- if ( e . boundingClientRect . top < e . rootBounds ! . height / 2 ) {
29
+ if (
30
+ e . rootBounds &&
31
+ e . boundingClientRect . top < e . rootBounds . height / 2
32
+ ) {
30
33
setIsStuck ( e . intersectionRatio < 1 ) ;
31
34
}
32
35
} ,
Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ export class SchemaTextView extends Model({
144
144
}
145
145
146
146
getRenderHeight ( index : number ) {
147
- const item = this . renderListItems . itemsList [ index ] . item ;
148
- return item . schemaType === "Module"
147
+ const item = this . renderListItems . itemsList [ index ] ? .item ;
148
+ return ! item || item . schemaType === "Module"
149
149
? 42
150
150
: this . renderHeights . get ( item . id ) ?? 42 ;
151
151
}
You can’t perform that action at this time.
0 commit comments