mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-11-23 13:50:20 +00:00
Refactored enum name retrieval for components
This commit is contained in:
parent
c36c83dad5
commit
2f92ced700
@ -45,7 +45,7 @@ public static class ComponentsExtensions
|
|||||||
|
|
||||||
Components.CHAT => TB("New Chat"),
|
Components.CHAT => TB("New Chat"),
|
||||||
|
|
||||||
_ => Enum.GetName(typeof(Components), component)!,
|
_ => Enum.GetName(component)!,
|
||||||
};
|
};
|
||||||
|
|
||||||
public static ComponentsData GetData(this Components destination) => destination switch
|
public static ComponentsData GetData(this Components destination) => destination switch
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user