mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 21:29:20 +01:00
Forgot to revert the optimistism
This commit is contained in:
parent
e4116cf9e6
commit
cff13d53f0
1 changed files with 6 additions and 0 deletions
|
@ -533,6 +533,8 @@ function Status({
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
// Revert optimistism
|
||||||
|
states.statuses.set(id, status);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -564,6 +566,8 @@ function Status({
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
// Revert optimistism
|
||||||
|
states.statuses.set(statusID, status);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -591,6 +595,8 @@ function Status({
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
// Revert optimistism
|
||||||
|
states.statuses.set(statusID, status);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue