Skip to content

Commit f99a3f5

Browse files
Copilotkarpikpl
andcommitted
Fix UI alignment and reactive ref access issues
Co-authored-by: karpikpl <[email protected]>
1 parent 9dfad36 commit f99a3f5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/components/DateRangeSelector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
@update:model-value="updateDateRange"
2323
/>
2424
</v-col>
25-
<v-col cols="12" sm="4" class="d-flex align-center">
25+
<v-col cols="12" sm="4" class="d-flex align-end">
2626
<v-btn
2727
color="primary"
2828
variant="outlined"
@@ -33,7 +33,7 @@
3333
</v-btn>
3434
<v-btn
3535
color="primary"
36-
:loading="loading"
36+
:loading="props.loading"
3737
@click="applyDateRange"
3838
>
3939
Apply

app/components/MainComponent.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ export default defineNuxtComponent({
186186
// Load initial data
187187
try {
188188
const { data: metricsData, error: metricsError } = await this.metricsFetch;
189-
if (metricsError.value || !metricsData.value) {
190-
this.processError(metricsError.value as H3Error);
189+
if (metricsError || !metricsData) {
190+
this.processError(metricsError as H3Error);
191191
} else {
192-
const apiResponse = metricsData.value as MetricsApiResponse;
192+
const apiResponse = metricsData as MetricsApiResponse;
193193
this.metrics = apiResponse.metrics || [];
194194
this.originalMetrics = apiResponse.usage || [];
195195
this.metricsReady = true;

0 commit comments

Comments
 (0)