mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: Fix node versioning again (#3819)
* 📘 Update state interface * ⚡ Adjust store module to interface * 🔥 Remove excess check * 🐛 Fix filtering * 🐛 Ensure default to latest version * ✨ Add `allLatestNodeTypes` getter * 🔥 Remove excess checks * ⚡ Simplify expression * ⚡ Add check * 🐛 Account for unknown node type name
This commit is contained in:
@@ -978,7 +978,11 @@ export interface ISettingsState {
|
||||
}
|
||||
|
||||
export interface INodeTypesState {
|
||||
nodeTypes: { [nodeType: string]: INodeTypeDescription };
|
||||
nodeTypes: {
|
||||
[nodeType: string]: {
|
||||
[version: number]: INodeTypeDescription;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export interface ITemplateState {
|
||||
|
||||
Reference in New Issue
Block a user