When the request is already pending, front/render the app if it exists

This commit is contained in:
Oliver 2025-12-05 22:25:47 -07:00
parent 8f63529932
commit e782ff237f

View file

@ -88,6 +88,17 @@ export async function query(
});
if (promises.has(request.id)) {
// Render / bring to front if the query has an app associated with it
const query = queries.get(request.id);
if (query?.app) {
if (query.app.rendered) {
query?.app?.bringToFront();
} else {
query.app.render({ force: true });
};
};
return null;
};