Skip to content

Commit

Permalink
fix: fix bugs introduced through typing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed May 21, 2024
1 parent c9d6d3d commit 969a835
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/design-system/src/components/N8nInput/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<ElInput
ref="innerInput"
:model-value="modelValue"
:type="type"
:size="resolvedSize"
:class="['n8n-input', ...classes]"
:autocomplete="autocomplete"
Expand Down
7 changes: 6 additions & 1 deletion packages/design-system/src/components/N8nRoute/Route.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
<router-link v-if="useRouterLink && to" :to="to" v-bind="$attrs">
<slot></slot>
</router-link>
<a v-else :href="`${to}`" :target="openNewWindow ? '_blank' : '_self'" v-bind="$attrs">
<a
v-else
:href="to ? `${to}` : undefined"
:target="openNewWindow ? '_blank' : '_self'"
v-bind="$attrs"
>
<slot></slot>
</a>
</template>
Expand Down

0 comments on commit 969a835

Please sign in to comment.