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:
Iván Ovejero
2022-08-03 13:11:25 +02:00
committed by GitHub
parent 679a443a0c
commit 6e1aaa10e5
4 changed files with 54 additions and 49 deletions

View File

@@ -978,7 +978,11 @@ export interface ISettingsState {
}
export interface INodeTypesState {
nodeTypes: { [nodeType: string]: INodeTypeDescription };
nodeTypes: {
[nodeType: string]: {
[version: number]: INodeTypeDescription;
}
};
}
export interface ITemplateState {