fixed bug with selection not correctly restoring after deserializing

This commit is contained in:
Jedd Morgan
2024-02-28 14:05:18 +00:00
parent 1b2eeed3eb
commit ab5d4c2fba
@@ -87,7 +87,7 @@ namespace Speckle.ConnectorUnity.Wrappers.Selection
index++;
}
string? currentSelected = KeyFunction(Selected);
string? currentSelected = selectedId;
if (currentSelected is null || !indexMap.ContainsKey(currentSelected))
{
selectedId = defaultOption;