mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-06-22 02:55:58 +02:00
Merge pull request #234 from ipnet-mesh/fix/profile-signal-tdz
fix(web): resolve TDZ error on profile page from shadowed signal var
This commit is contained in:
@@ -167,7 +167,6 @@ ${flashHtml}
|
||||
</div>`, container);
|
||||
|
||||
const ac = new AbortController();
|
||||
const signal = ac.signal;
|
||||
|
||||
container.querySelector('#profile-form').addEventListener('submit', async (e) => {
|
||||
e.preventDefault();
|
||||
@@ -184,7 +183,7 @@ ${flashHtml}
|
||||
} catch (err) {
|
||||
router.navigate('/profile?error=' + encodeURIComponent(err.message), true);
|
||||
}
|
||||
}, { signal });
|
||||
}, { signal: ac.signal });
|
||||
|
||||
return () => ac.abort();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user