File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,10 @@ const toggleAllFields = computed({
133133 for (const key of visibleKeys .value .keys ()) {
134134 visibleKeys .value .set (key , value );
135135 }
136+
137+ for (const field of fields .value ) {
138+ visibleKeys .value .set (field .key , value );
139+ }
136140 },
137141});
138142
Original file line number Diff line number Diff line change @@ -86,13 +86,17 @@ export class ComplexLogEntry extends LogEntry<JSONObject> {
8686 return flattenJSON ( message ) ;
8787 } else {
8888 const flatJSON = flattenJSON ( message ) ;
89+ const filteredJSON : Record < string , any > = { } ;
8990 for ( const [ keys , enabled ] of visibleKeys . value . entries ( ) ) {
9091 const key = keys . join ( "." ) ;
9192 if ( ! enabled ) {
9293 delete flatJSON [ key ] ;
94+ continue ;
9395 }
96+ filteredJSON [ key ] = flatJSON [ key ] ;
97+ delete flatJSON [ key ] ;
9498 }
95- return flatJSON ;
99+ return { ... filteredJSON , ... flatJSON } ;
96100 }
97101 } ) ;
98102 } else {
You can’t perform that action at this time.
0 commit comments