mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 00:58:32 +02:00
Pass render purpose to render
This commit is contained in:
@@ -2006,11 +2006,12 @@ async fn handle_plugin_event<R: Runtime>(
|
||||
None => None,
|
||||
Some(id) => get_environment(&w, id.as_str()).await.ok(),
|
||||
};
|
||||
let cb = &*app_handle.state::<PluginTemplateCallback>();
|
||||
let rendered_http_request = render_http_request(
|
||||
app_handle,
|
||||
&req.http_request,
|
||||
&workspace,
|
||||
environment.as_ref(),
|
||||
cb,
|
||||
)
|
||||
.await;
|
||||
Some(InternalEventPayload::RenderHttpRequestResponse(
|
||||
|
||||
Reference in New Issue
Block a user