Skip to content

Commit

Permalink
frontend/src: run prettier via npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorth committed Jan 31, 2024
1 parent e9922bf commit 10a5606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/src/app/admin/design/design.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ export class DesignComponent implements OnInit {
if (obj.allowFilterOnClick)
temp['allowFilterOnClick'] = obj.allowFilterOnClick;

if (obj.inner_size)
temp['inner_size'] = obj.inner_size;
if (obj.inner_size) temp['inner_size'] = obj.inner_size;

if (obj.source_x && obj.source_y) {
temp['source'] = [obj.source_x, obj.source_y + '.keyword'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ export class PieComponent extends ParentChart implements OnInit {
},
series: [
{
innerSize: !this.componentConfigs?.inner_size || this.componentConfigs.inner_size <= 0 || this.componentConfigs.inner_size > 100 ? 0 : (this.componentConfigs.inner_size + '%'),
innerSize:
!this.componentConfigs?.inner_size ||
this.componentConfigs.inner_size <= 0 ||
this.componentConfigs.inner_size > 100
? 0
: this.componentConfigs.inner_size + '%',
animation: true,
type: 'pie',
data: buckets.map((b: Bucket) => ({
Expand Down

0 comments on commit 10a5606

Please sign in to comment.