Skip to content

Commit dea2451

Browse files
committed
[frontend] Fix type issues in editor v2 Vue components
1 parent e55c876 commit dea2451

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

desktop/core/src/desktop/js/apps/editor/components/ExecutionStatusIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
name: 'ExecutionStatusIcon',
3838
props: {
3939
status: {
40-
type: Object as PropType<ExecutionStatus | null>,
40+
type: String as PropType<ExecutionStatus | null>,
4141
default: null
4242
}
4343
},

desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/details/CatalogEntryDetailsPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</div>
5151

5252
<div v-if="loading" class="details-comment">
53-
<spinner size="small" inline="true" />
53+
<spinner size="small" :inline="true" />
5454
</div>
5555
<div v-else-if="comment" class="details-comment">{{ comment }}</div>
5656
<div v-else class="details-no-comment">{{ I18n('No description') }}</div>

desktop/core/src/desktop/js/apps/editor/components/result/ResultTable.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
},
7676
props: {
7777
executable: {
78-
type: Object as PropType<Executable>,
79-
required: true
78+
type: Object as PropType<Executable | undefined>,
79+
default: undefined
8080
}
8181
},
8282
setup(props) {
@@ -204,7 +204,7 @@
204204
if (streaming.value) {
205205
return;
206206
}
207-
if (hasMore.value && !grayedOut.value && executable.value && executable.value.result) {
207+
if (hasMore.value && !grayedOut.value && executable.value?.result) {
208208
grayedOut.value = true;
209209
try {
210210
await executable.value.result.fetchRows({ rows: 100 });

0 commit comments

Comments
 (0)