diff --git a/tools/winscope/src/SurfaceFlingerTraceView.vue b/tools/winscope/src/SurfaceFlingerTraceView.vue index 8cd94da07..602a93b99 100644 --- a/tools/winscope/src/SurfaceFlingerTraceView.vue +++ b/tools/winscope/src/SurfaceFlingerTraceView.vue @@ -37,7 +37,7 @@ export default { summarizer(layer) { const summary = []; - if (layer?.visibilityReason.length > 0) { + if (layer?.visibilityReason?.length > 0) { let reason = ""; if (Array.isArray(layer.visibilityReason)) { reason = layer.visibilityReason.join(", "); diff --git a/tools/winscope/src/TransformMatrix.vue b/tools/winscope/src/TransformMatrix.vue index c5541364a..d8b7a8363 100644 --- a/tools/winscope/src/TransformMatrix.vue +++ b/tools/winscope/src/TransformMatrix.vue @@ -13,7 +13,7 @@ limitations under the License. -->