File tree 3 files changed +6
-11
lines changed
3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -363,17 +363,9 @@ exports.createServer = (dynamodb, docClient) => {
363
363
? encodeURIComponent ( JSON . stringify ( nextKey ) )
364
364
: null
365
365
366
- const Items = pageItems . map ( item => {
367
- for ( const [ key , value ] of Object . entries ( item ) ) {
368
- if ( value && typeof ( value ) === 'object' &&
369
- ! Array . isArray ( value ) ) {
370
- item [ key ] = JSON . stringify ( value , null , 2 ) ;
371
- }
372
- }
373
- return Object . assign ( { } , item , {
374
- __key : extractKey ( item , description . Table . KeySchema )
375
- } )
376
- } ) ;
366
+ const Items = pageItems . map ( item => Object . assign ( { } , item , {
367
+ __key : extractKey ( item , description . Table . KeySchema )
368
+ } ) ) ;
377
369
const UniqueKeys = extractKeysForItems ( Items ) ;
378
370
379
371
const data = Object . assign ( { } , description , {
Original file line number Diff line number Diff line change 6
6
<style >
7
7
body {font-size : 0.8rem ;padding-top : 20px ;}
8
8
a pre {color : inherit ;}
9
+ .preformatted {white-space : pre ;}
9
10
/* go away, LastPass */
10
11
form [autocomplete = " off" ] input [type = " text" ] {
11
12
background-position : 150% 50% !important ;
Original file line number Diff line number Diff line change 187
187
title= " <%= dateValue %>" >
188
188
< %= item[column] % >
189
189
< / abbr>
190
+ < % } else if (value && typeof (value) === ' object' ) { % >
191
+ < div class = " preformatted" >< %= JSON .stringify (value, null , 4 ) % >< / div>
190
192
< % } else { % >
191
193
< %= item[column] % >
192
194
< % } % >
You can’t perform that action at this time.
0 commit comments