Skip to content

Commit

Permalink
Add defaults to activity item props to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Apr 15, 2023
1 parent b30b281 commit 508bc4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/components/ActivityBar/ActivityItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export interface Props {
const props = withDefaults(defineProps<Props>(), {
icon: "question",
isActive: false,
options: null,
progressPercentage: 0,
progressStatus: null,
to: null,
tooltip: null,
});
Expand All @@ -32,7 +36,7 @@ const emit = defineEmits<{
}>();
function onClick(): void {
if (props.to !== undefined) {
if (props.to) {
router.push(props.to);
}
emit("click");
Expand All @@ -49,7 +53,7 @@ function onClick(): void {
:class="{ 'nav-item-active': isActive }"
:aria-label="title | l"
@click="onClick">
<span v-if="!!progressStatus" class="progress">
<span v-if="progressStatus" class="progress">
<div
class="progress-bar notransition"
:class="{
Expand Down

0 comments on commit 508bc4b

Please sign in to comment.