File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ function setupGraphicsBlocks(activity) {
9797 * @returns {number } - The heading value.
9898 */
9999 arg ( logo , turtle , blk ) {
100- const connections = activity . blocks . blockList [ blk ] ?. connections ;
100+ const connections = activity ? .blocks ? .blockList ?. [ blk ] ?. connections ;
101101 const parentId = connections ?. [ 0 ] ;
102102 if (
103103 logo . inStatusMatrix &&
@@ -182,7 +182,8 @@ function setupGraphicsBlocks(activity) {
182182 * @returns {number } - The Y-coordinate value.
183183 */
184184 arg ( logo , turtle , blk ) {
185- const connections = activity . blocks . blockList [ blk ] ?. connections ;
185+ const blocks = logo ?. activity ?. blocks || logo ?. blocks || activity ?. blocks ;
186+ const connections = blocks ?. blockList ?. [ blk ] ?. connections ;
186187 const parentId = connections ?. [ 0 ] ;
187188 if (
188189 logo . inStatusMatrix &&
@@ -268,7 +269,8 @@ function setupGraphicsBlocks(activity) {
268269 * @returns {number } - The X-coordinate value.
269270 */
270271 arg ( logo , turtle , blk ) {
271- const connections = activity . blocks . blockList [ blk ] ?. connections ;
272+ const blocks = logo ?. activity ?. blocks || logo ?. blocks || activity ?. blocks ;
273+ const connections = blocks ?. blockList ?. [ blk ] ?. connections ;
272274 const parentId = connections ?. [ 0 ] ;
273275 if (
274276 logo . inStatusMatrix &&
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class StatsWindow {
4545 this . widgetWindow . getWidgetBody ( ) . style . justifyContent = "space-between" ;
4646 this . widgetWindow . getWidgetBody ( ) . style . padding = "0px 2vw" ;
4747 } else {
48- this . widgetWindow . getWidgetBody ( ) . style . padding = "0px 0px " ;
48+ this . widgetWindow . getWidgetBody ( ) . style . padding = "0px" ;
4949 }
5050 this . doAnalytics ( ) ;
5151 } ;
You can’t perform that action at this time.
0 commit comments