File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
src/electron/frontend/core/components Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 11repos :
22
33- repo : https://github.com/pre-commit/pre-commit-hooks
4- rev : v5 .0.0
4+ rev : v6 .0.0
55 hooks :
66 - id : check-yaml
77 - id : end-of-file-fixer
Original file line number Diff line number Diff line change @@ -669,13 +669,20 @@ export class Table extends LitElement {
669669 if ( cell ) {
670670 let message = "" ;
671671 let theme = "" ;
672- if ( warnings . length ) {
673- ( theme = "warning" ) , ( message = warnings . map ( ( error ) => error . message ) . join ( "\n" ) ) ;
674- } else cell . removeAttribute ( "warning" ) ;
672+ if ( warnings . length > 0 ) {
673+ theme = "warning" ;
674+ message = warnings . map ( ( error ) => error . message ) . join ( "\n" ) ;
675+ } else {
676+ cell . removeAttribute ( "warning" ) ;
677+ }
675678
676- if ( errors . length ) {
677- ( theme = "error" ) , ( message = errors . map ( ( error ) => error . message ) . join ( "\n" ) ) ; // Class switching handled automatically
678- } else cell . removeAttribute ( "error" ) ;
679+ if ( errors . length > 0 ) {
680+ theme = "error" ;
681+ // Class switching handled automatically
682+ message = errors . map ( ( error ) => error . message ) . join ( "\n" ) ;
683+ } else {
684+ cell . removeAttribute ( "error" ) ;
685+ }
679686
680687 if ( theme ) cell . setAttribute ( theme , "" ) ;
681688
You can’t perform that action at this time.
0 commit comments