Projekt

Obecné

Profil

« Předchozí | Další » 

Revize a0cbde1e

Přidáno uživatelem plundrichov před více než 4 roky(ů)

re #58 fetch setting(const response), switch added default opt.

Zobrazit rozdíly:

client/src/api.js
12 12
      `${http}/users/current/profile`, {
13 13
        headers: {
14 14
          Authorization: 1
15
          
15 16
        }
16 17
      }
17 18
    );    
......
327 328
  let response;
328 329

  
329 330
  try {
330
    const response = await fetch(
331
    response = await fetch(
331 332
      `${http}/settings`, {
332 333
        headers: {
333 334
          Authorization: 1
335

  
334 336
        }
335 337
      });
336 338
  } catch (e) {

Také k dispozici: Unified diff