Remove valid types

This commit is contained in:
Adam
2025-08-30 21:19:32 -07:00
parent a871bcf5c8
commit 59d85cb53e
4 changed files with 12 additions and 17 deletions

View File

@@ -59,8 +59,6 @@ pub struct FrontendGraphInput {
pub description: String,
#[serde(rename = "resolvedType")]
pub resolved_type: String,
#[serde(rename = "validTypes")]
pub valid_types: Vec<String>,
#[serde(rename = "connectedTo")]
/// Either "nothing", "import index {index}", or "{node name} output {output_index}".
pub connected_to: String,

View File

@@ -663,20 +663,19 @@ impl NodeNetworkInterface {
};
// TODO: Move in separate Tooltip overlay
let valid_types = match self.valid_input_types(&input_connector, network_path) {
Ok(input_types) => input_types.iter().map(|ty| ty.to_string()).collect(),
Err(e) => {
log::error!("Error getting valid types for input {input_connector:?}: {e}");
Vec::new()
}
};
// let valid_types = match self.valid_input_types(&input_connector, network_path) {
// Ok(input_types) => input_types.iter().map(|ty| ty.to_string()).collect(),
// Err(e) => {
// log::error!("Error getting valid types for input {input_connector:?}: {e}");
// Vec::new()
// }
// };
Some(FrontendGraphInput {
data_type,
resolved_type,
name,
description,
valid_types,
connected_to,
})
}