Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 72afb023

Přidáno uživatelem Fantič před téměř 2 roky(ů)

re #10569: NotesView: NotesView in ItemDetail

Zobrazit rozdíly:

src/stores/actions/itemThunks.ts
30 30
                return {
31 31
                    id: itemId,
32 32
                    fullView: true,
33
                    concordances:  [{id: itemId, cert: response.data.object[1]?.cert || Certainty.Unknown}].concat(response.data.concordances),
33
                    concordances: response.data.concordances ?
34
                         [{id: itemId, cert: response.data.object[1]?.cert || Certainty.Unknown}].concat(response.data.concordances)
35
                         :
36
                         [{id: itemId, cert: response.data.object[1]?.cert || Certainty.Unknown}],
34 37
                    authorDisplayName: response.data.object[0]?.name?.[0]?.getty_data?.display_name || null,
35 38
                    workName: response.data.object[0]?.caption || null,
36 39
                    inventoryItem: response.data.text || null,
......
49 52
                return {
50 53
                    id: itemId,
51 54
                    fullView: false,
52
                    concordances: [{id: itemId, cert: Certainty.Unknown}].concat(response.data.concordances),
55
                    concordances: response.data.concordances ?
56
                    [{id: itemId, cert: response.data.object[1]?.cert || Certainty.Unknown}].concat(response.data.concordances)
57
                    :
58
                    [{id: itemId, cert: response.data.object[1]?.cert || Certainty.Unknown}],
53 59
                    authorDisplayName: response.data.object[0]?.name?.[0]?.getty_data?.display_name || null,
54 60
                    workName: response.data.object[0]?.caption || null,
55 61
                    inventoryItem: response.data.text || null,

Také k dispozici: Unified diff