From f89f4e0047366084ebf3cea9e29f023ca359049c Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 21 Apr 2026 13:09:21 +0200 Subject: [PATCH] :bug: Fix problem on component swap --- render-wasm/src/wasm/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render-wasm/src/wasm/text.rs b/render-wasm/src/wasm/text.rs index f34aa10cf2..88726de91e 100644 --- a/render-wasm/src/wasm/text.rs +++ b/render-wasm/src/wasm/text.rs @@ -314,9 +314,9 @@ pub extern "C" fn set_shape_grow_type(grow_type: u8) { with_current_shape_mut!(state, |shape: &mut Shape| { if let Type::Text(text_content) = &mut shape.shape_type { text_content.set_grow_type(GrowType::from(grow_type)); - } else { - panic!("Trying to update grow type in a shape that it's not a text shape"); } + // Don't throw error if the object is not text. + // On swap component opperations is convenient. }); }