Skip to content

Commit 5bd7ad5

Browse files
committed
fix: DOM displaying issue
1 parent 530c83a commit 5bd7ad5

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

libs/common/utils/src/lib/functions/signal.utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export function asyncComputed<T>(
2222

2323
resultSignal.set(unwrappedResult as unknown as T);
2424
},
25-
{ allowSignalWrites: true },
2625
);
2726

2827
return resultSignal.asReadonly();

libs/streets/explorer/src/lib/components/safety-metrics-panel/component/safety-metrics-panel.component.html

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,25 @@
77
></m-safe-metrics-digit-panel>
88
}
99

10-
@if (_metricsIncidentTypes$.value()) {
11-
@if (element === 1) {
12-
<p-chart
13-
type="bar"
14-
[data]="_barMetricsRideIncidentDistributionData$()"
15-
[responsive]="true"
16-
[options]="_barMetricsRideIncidentDistributionOptions"
17-
size="large"
18-
>
19-
</p-chart>
20-
}
21-
@if (element === 2) {
22-
<p-chart
23-
type="pie"
24-
[data]="_pieMetricsIncidentTypesData$()"
25-
[responsive]="true"
26-
[options]="_pieMetricsIncidentTypesOptions"
27-
size="large"
28-
>
29-
</p-chart>
30-
}
10+
@if (element === 1) {
11+
<p-chart
12+
type="bar"
13+
[data]="_barMetricsRideIncidentDistributionData$()"
14+
[responsive]="true"
15+
[options]="_barMetricsRideIncidentDistributionOptions"
16+
size="large"
17+
>
18+
</p-chart>
19+
}
20+
@if (element === 2) {
21+
<p-chart
22+
type="pie"
23+
[data]="_pieMetricsIncidentTypesData$()"
24+
[responsive]="true"
25+
[options]="_pieMetricsIncidentTypesOptions"
26+
size="large"
27+
>
28+
</p-chart>
3129
}
3230
</ng-template>
3331
</p-carousel>

0 commit comments

Comments
 (0)