Be consistent about using report.public_id over report.id
This commit is contained in:
parent
02139450c6
commit
3c62fe2ca1
9 changed files with 19 additions and 29 deletions
|
|
@ -10,7 +10,7 @@ export const useStorePublicReport = defineStore("publicreport", () => {
|
|||
//const ongoingFetch = ref<Promise<PublicReport[]> | null>(null);
|
||||
|
||||
function add(pr: PublicReport) {
|
||||
_byID.value.set(pr.id, pr);
|
||||
_byID.value.set(pr.public_id, pr);
|
||||
}
|
||||
// Actions
|
||||
async function byID(id: string): Promise<PublicReport | undefined> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue