(element: Element)
| 118 | } |
| 119 | |
| 120 | function printErrorsAndWarnings(element: Element): string { |
| 121 | const {errorCount, warningCount} = |
| 122 | store.getErrorAndWarningCountForElementID(element.id); |
| 123 | if (errorCount === 0 && warningCount === 0) { |
| 124 | return ''; |
| 125 | } |
| 126 | return ` ${errorCount > 0 ? '✕' : ''}${warningCount > 0 ? '⚠' : ''}`; |
| 127 | } |
| 128 | |
| 129 | const ownerFlatTree = state !== null ? state.ownerFlatTree : null; |
| 130 | if (ownerFlatTree !== null) { |
no test coverage detected