Skip to content

Commit

Permalink
Simplify option computation for TagCell
Browse files Browse the repository at this point in the history
  • Loading branch information
gappc committed Feb 20, 2025
1 parent 2d268ab commit 7a81c65
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
</template>

<script setup lang="ts">
import { computed, ref, toRefs, useAttrs } from 'vue';
import { computed, toRefs, useAttrs } from 'vue';
import EditListCell from '../../utils/editList/EditListCell.vue';
import TagTable from './TagTable.vue';
import { useAttributeMapper } from './useAttributeMapper';
Expand All @@ -40,7 +40,7 @@ const { tags, sortByLabel, unique } = toRefs(props);

const attrs = useAttrs();

const { options } = useAttributeMapper(ref(attrs), sortByLabel);
const { options } = useAttributeMapper(attrs, sortByLabel);

const enableUniqueValue = computed(() => {
// if unique is a boolean, return it
Expand Down

0 comments on commit 7a81c65

Please sign in to comment.