Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: build issue
  • Loading branch information
mohan-bee committed Mar 10, 2026
commit b783a4b0ca4f57fbdbe185c3a2f317ede7c48bd9
9 changes: 6 additions & 3 deletions editor/src/node_graph_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,13 @@ impl NodeGraphExecutor {
..
}) => {
if file_type == FileType::Svg {
responses.add(FrontendMessage::TriggerSaveFile { name, content: svg.into_bytes() });
responses.add(FrontendMessage::TriggerSaveFile {
name,
content: svg.into_bytes().into(),
});
} else if file_type == FileType::Pdf {
match svg_to_pdf(&svg, size) {
Ok(pdf_data) => responses.add(FrontendMessage::TriggerSaveFile { name, content: pdf_data }),
match svg_to_pdf(&svg, size.into()) {
Ok(pdf_data) => responses.add(FrontendMessage::TriggerSaveFile { name, content: pdf_data.into() }),
Err(err) => return Err(format!("Failed to convert SVG to PDF: {err}")),
}
} else {
Expand Down
Loading