From 7f18fd775523edf03a4460df32b5e72da24f829a Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Sun, 1 Sep 2024 23:34:52 +0200 Subject: [PATCH] list editor: get_data_port() make map on list instead of seq --- lib-nested-core/src/editors/list/editor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib-nested-core/src/editors/list/editor.rs b/lib-nested-core/src/editors/list/editor.rs index 575f6eb..92fa436 100644 --- a/lib-nested-core/src/editors/list/editor.rs +++ b/lib-nested-core/src/editors/list/editor.rs @@ -162,9 +162,9 @@ impl ListEditor { } pub fn get_data_port(&self) -> OuterViewPort> { - self.data.get_port().to_sequence().map( + self.data.get_port().to_list().map( |x| x.read().unwrap().clone() - ) + ).to_sequence() } /* pub fn get_data(&self) -> Arc> { @@ -186,7 +186,7 @@ impl ListEditor { } else { None } - } + } pub fn get_item_mut(&mut self) -> Option>>> { if let Some(idx) = self.cursor.get().idx {