From 8982f5280ae088b81de2320686026aa14ac9e4f8 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Wed, 4 Dec 2024 16:08:46 +0100 Subject: [PATCH] Cleanup --- crates/next-api/src/server_actions.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/next-api/src/server_actions.rs b/crates/next-api/src/server_actions.rs index cb28c2b35530bc..2b33bb5dd2e2a2 100644 --- a/crates/next-api/src/server_actions.rs +++ b/crates/next-api/src/server_actions.rs @@ -411,12 +411,9 @@ pub async fn map_server_actions(graph: Vc) -> Result { - Some((node.module, (layer, action_map.to_resolved().await?))) - } - None => None, - }) + Ok(parse_actions(*node.module) + .await? + .map(|action_map| (node.module, (layer, action_map)))) } }) .try_flat_join()