Skip to content

Commit

Permalink
Merge pull request #136 from ninoseki/make-header-from-reactive
Browse files Browse the repository at this point in the history
fix: make header.from reactive
  • Loading branch information
ninoseki committed Oct 14, 2021
2 parents 4f5a169 + 3614490 commit 0959800
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/components/headers/BasicHeaders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</template>

<script lang="ts">
import { defineComponent, PropType } from "@vue/composition-api";
import { computed, defineComponent, PropType } from "@vue/composition-api";
import Indicators from "@/components/indicators/Indicators.vue";
import H3 from "@/components/ui/h3.vue";
Expand All @@ -54,7 +54,9 @@ export default defineComponent({
components: { Indicators, UTC, H3 },
setup(props) {
const emailType = "email";
const emails = [props.header.from];
const emails = computed(() => {
return [props.header.from];
});
return { emails, emailType, toCommaSeparatedString };
},
Expand Down

0 comments on commit 0959800

Please sign in to comment.