fix: PR requested change

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2023-06-10 11:53:22 +03:00
parent 7bdb7dc361
commit e41efb718f
6 changed files with 9 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import type { ComputedRef } from 'vue'
import JsBarcodeWrapper from './JsBarcodeWrapper.vue'
import { RowHeightInj } from '#imports'
import { RowHeightInj, computed, inject, ref } from '#imports'
const maxNumberOfAllowedCharsForBarcodeValue = 100
@@ -32,10 +32,7 @@ const showBarcode = computed(() => barcodeValue?.value.length > 0 && !tooManyCha
const { showEditNonEditableFieldWarning, showClearNonEditableFieldWarning } = useShowNotEditableWarning()
const rowHeight = inject(
RowHeightInj,
computed(() => undefined),
)
const rowHeight = inject(RowHeightInj, ref(undefined))
</script>
<template>