Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
hjohns committed Apr 14, 2024
1 parent 3e7084f commit 315b845
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions prez-components/src/custom-components/CustomItem.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<script lang="ts" setup>
import { PrezProperty, PrezLiteral, PrezNode } from 'prez-lib';
import { PrezNode } from 'prez-lib';
import type { ItemProperties } from './CustomItem';
import PrezUITerm from '../components/PrezUITerm.vue';
import CopyButton from "../components/CopyButton.vue";
const props = defineProps<{focusNode: PrezNode, properties: ItemProperties}>();
const propertyValue = (property:PrezProperty|undefined, dataType?:string) =>
property?.objects?.filter(obj => !dataType || (obj.termType == "Literal" && dataType == (obj as PrezLiteral).datatype?.value))
.map(obj => obj.value).join(', ') || "";
</script>

<template>
Expand Down

0 comments on commit 315b845

Please sign in to comment.