assistant2: Derive the Context
icon at render time instead of storing (#22397)
This PR is a follow up to #22385 that makes it so we treat the icon as derived state. Release Notes: - N/A
This commit is contained in:
parent
564936e1fe
commit
4c84600630
3 changed files with 10 additions and 22 deletions
|
@ -36,9 +36,8 @@ impl ContextStore {
|
|||
self.context.push(Context {
|
||||
id: self.next_context_id.post_inc(),
|
||||
name: name.into(),
|
||||
kind: kind.clone(),
|
||||
kind,
|
||||
text: text.into(),
|
||||
icon: kind.icon(),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue