Skip to content

Commit

Permalink
Reverts to IncidentRead in IncidentPagination Pydantic model (#1907)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvilanova authored Jan 19, 2022
1 parent 33f577a commit 20b41b4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dispatch/incident/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,4 +415,4 @@ class IncidentPagination(DispatchBase):
total: int
itemsPerPage: int
page: int
items: List[IncidentReadMinimal] = []
items: List[IncidentRead] = []
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<div v-if="participants.length">
<div v-if="participants && participants.length">
<span v-for="participant in participants" :key="participant.id">
<v-list-item :href="participant.individual.weblink" target="_blank">
<v-list-item-content>
Expand Down Expand Up @@ -33,6 +33,7 @@ import { mapFields } from "vuex-map-fields"
export default {
name: "IncidentParticipantsTab",
computed: {
...mapFields("incident", ["selected.participants"]),
},
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/static/dispatch/src/incident/TimelineTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Export
</v-btn>
</v-row>
<v-timeline v-if="events.length" dense clipped>
<v-timeline v-if="events && events.length" dense clipped>
<v-timeline-item
v-for="event in sortedEvents"
:key="event.id"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<div v-if="workflow_instances.length">
<div v-if="workflow_instances && workflow_instances.length">
<span v-for="instance in workflow_instances" :key="instance.id">
<v-card>
<div>
Expand Down

0 comments on commit 20b41b4

Please sign in to comment.