Skip to content

Commit

Permalink
Merge pull request #18061 from dannon/citations-list-default-prop-fix
Browse files Browse the repository at this point in the history
[24.0] CitationsList - fix prop spec and config access.
  • Loading branch information
dannon authored May 3, 2024
2 parents ca6b91d + 97efcea commit 8a15165
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/Citation/CitationsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const outputFormats = Object.freeze({
interface Props {
id: string;
source: string;
simple: boolean;
simple?: boolean;
}
const props = withDefaults(defineProps<Props>(), {
Expand All @@ -29,7 +29,7 @@ const { config } = useConfig(true);
const emit = defineEmits(["rendered", "show", "shown", "hide", "hidden"]);
const outputFormat = ref(outputFormats.CITATION);
const outputFormat = ref<string>(outputFormats.CITATION);
const citations = ref<Citation[]>([]);
onUpdated(() => {
Expand Down Expand Up @@ -65,7 +65,7 @@ onMounted(async () => {
</template>

<div v-if="source === 'histories'" class="infomessage">
<div v-html="config.citations_export_message_html"></div>
<div v-html="config?.citations_export_message_html"></div>
</div>

<div class="citations-formatted">
Expand Down

0 comments on commit 8a15165

Please sign in to comment.