mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Prevent login page from showing error before redirect
This commit is contained in:
parent
35e7e0d447
commit
1ed45c8903
@ -72,7 +72,9 @@ async function addPostListener(formId, errorId, apiTarget, callback) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const json = await postJsonForm(formId, apiTarget);
|
const json = await postJsonForm(formId, apiTarget);
|
||||||
callback(json);
|
if (json) {
|
||||||
|
callback(json);
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
errorBlock.innerText = error.message;
|
errorBlock.innerText = error.message;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user