Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c0cf1dbc

Přidáno uživatelem Václav Honzík před asi 2 roky(ů)

coordinates fix

Zobrazit rozdíly:

frontend/src/features/Catalog/CatalogItemDetail.tsx
100 100
        },
101 101
        {
102 102
            rowName: 'Coordinates',
103
            items: [`${item?.longitude}°, ${item?.latitude}°`],
103
            items: item?.longitude && item?.latitude ? `${item?.latitude}°, ${item?.longitude}°` : '-, -',
104 104
        },
105 105
        {
106 106
            rowName: 'Certainty',
frontend/src/features/TrackingTool/trackingToolSlice.ts
47 47
    name: 'trackingTool',
48 48
    initialState,
49 49
    reducers: {
50
        consumeErr: (state) => ({ ...state, lastErr: undefined }),
51
        setPrimaryIdx: (state, action) => ({
50
        consumeErr: (state: TrackingToolState) => ({ ...state, lastErr: undefined }),
51
        setPrimaryIdx: (state: TrackingToolState, action: any) => ({
52 52
            ...state,
53 53
            primaryPathIdx: action.payload,
54 54
        }),
55
        resetDialogApiCallSuccess: (state) => ({
55
        resetDialogApiCallSuccess: (state: TrackingToolState) => ({
56 56
            ...state,
57 57
            dialogApiCallSuccess: false,
58 58
        }),
59
        clear: (state) => ({...initialState})
59
        clear: (state: TrackingToolState) => ({...initialState})
60 60
    },
61 61
    extraReducers: (builder) => {
62 62
        builder.addCase(sendTextForProcessing.fulfilled, (state, action) => {

Také k dispozici: Unified diff