Skip to content

Commit

Permalink
fix: suppres [Vue warn]: injection
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnixon committed Oct 19, 2023
1 parent aa4612d commit c092974
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/CvStructuredList/CvStructuredListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</template>

<script setup>
import { computed, inject, provide } from 'vue';
import { computed, inject, provide, ref } from 'vue';
import CvStructuredListItemStandard from './CvStructuredListItemStandard.vue';
import CvStructuredListItemSelectable from './CvStructuredListItemSelectable.vue';
Expand All @@ -30,8 +30,8 @@ defineProps({
},
});
const selectable = inject('selectable');
const change = inject('change');
const selectable = inject('selectable', false);
const change = inject('change', () => {});
const emit = defineEmits(['change']);
provide('onRadioItemChange', clickedItemCvId => {
Expand Down

0 comments on commit c092974

Please sign in to comment.