Add ModInfo.id getter

Provide a simple unique identifier for mods consisting of the name
followed by an underscore and then the version.
This commit is contained in:
Hornwitser committed 2023-12-12 00:08:25 +01:00
1 parent ddba58ca99
commit 867bb0c646
4 files changed
+13 -5

No files matched your search

+1 -1
View File
@@ -265,7 +265,7 @@ export default function ModsPage() {
}}
dataSource={modList}
pagination={false}
rowKey={mod => `${mod.name}_${mod.version}`}
rowKey={mod => mod.id}
/>
<PluginExtra component="ModsPage" />
</PageLayout>;