소스 검색

Reverted changes made to ColorGridView.

Aleksander Nowodzinski 5 년 전
부모
커밋
1dff59d6a0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/ckeditor5-ui/src/colorgrid/colorgridview.js

+ 2 - 2
packages/ckeditor5-ui/src/colorgrid/colorgridview.js

@@ -102,13 +102,13 @@ export default class ColorGridView extends View {
 				color: item.color,
 				label: item.label,
 				tooltip: true,
-				hasBorder: item.options && item.options.hasBorder
+				hasBorder: item.options.hasBorder
 			} );
 
 			colorTile.on( 'execute', () => {
 				this.fire( 'execute', {
 					value: item.color,
-					hasBorder: item.options && item.options.hasBorder,
+					hasBorder: item.options.hasBorder,
 					label: item.label
 				} );
 			} );