Display transform on the SF traces
The transform flicker object doesn't have a "isNotEmpty" property (return undefined) and was being ignored. Instead check if object.isEmpty === true to allow objects without a isNotEmpty property to be displayed Bug: 176906864 Test: compile winscope, take a SF trace, check if the layers have a trasnform property Change-Id: Ia466dd6b5e9f5e08fad515d31122206b6bd9898a
This commit is contained in:
@@ -88,7 +88,8 @@ export default class ObjectFormatter {
|
||||
if (value || (this.displayDefaults && value !== undefined && value !== null)) {
|
||||
// flicker obj
|
||||
if (value.prettyPrint) {
|
||||
if (value.isNotEmpty || this.displayDefaults) {
|
||||
const isEmpty = value.isEmpty === true;
|
||||
if (!isEmpty || this.displayDefaults) {
|
||||
result[key] = value.prettyPrint()
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user