Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[frontend] Fix type issues in editor v2 Vue components
  • Loading branch information
JohanAhlen committed May 27, 2021
1 parent e55c876 commit dea2451
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -37,7 +37,7 @@
name: 'ExecutionStatusIcon',
props: {
status: {
type: Object as PropType<ExecutionStatus | null>,
type: String as PropType<ExecutionStatus | null>,
default: null
}
},
Expand Down
Expand Up @@ -50,7 +50,7 @@
</div>

<div v-if="loading" class="details-comment">
<spinner size="small" inline="true" />
<spinner size="small" :inline="true" />
</div>
<div v-else-if="comment" class="details-comment">{{ comment }}</div>
<div v-else class="details-no-comment">{{ I18n('No description') }}</div>
Expand Down
Expand Up @@ -75,8 +75,8 @@
},
props: {
executable: {
type: Object as PropType<Executable>,
required: true
type: Object as PropType<Executable | undefined>,
default: undefined
}
},
setup(props) {
Expand Down Expand Up @@ -204,7 +204,7 @@
if (streaming.value) {
return;
}
if (hasMore.value && !grayedOut.value && executable.value && executable.value.result) {
if (hasMore.value && !grayedOut.value && executable.value?.result) {
grayedOut.value = true;
try {
await executable.value.result.fetchRows({ rows: 100 });
Expand Down

0 comments on commit dea2451

Please sign in to comment.