Skip to content

Commit

Permalink
Update ActivityDetailsTab and Elsa.Api.Client version
Browse files Browse the repository at this point in the history
Updated the way of getting workflowDefinitionId in ActivityDetailsTab to prevent getting the workflowDefinitionId property of activities other than WorkflowDefinitionActivity variants. Additionally, the version of Elsa.Api.Client in Elsa.Studio.Core.csproj has been updated to 3.0.0-preview.890.
  • Loading branch information
sfmskywalker committed Dec 11, 2023
1 parent f436c88 commit 6b6bd39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/framework/Elsa.Studio.Core/Elsa.Studio.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
<PackageReference Include="ThrottleDebounce" Version="2.0.0"/>
</ItemGroup>

<!-- <ItemGroup Label="Elsa">-->
<!-- <ProjectReference Include="..\..\..\..\..\elsa-core\v3\src\clients\Elsa.Api.Client\Elsa.Api.Client.csproj"/>-->
<!-- </ItemGroup>-->
<!-- <ItemGroup Label="Elsa">-->
<!-- <ProjectReference Include="..\..\..\..\..\elsa-core\v3\src\clients\Elsa.Api.Client\Elsa.Api.Client.csproj"/>-->
<!-- </ItemGroup>-->

<ItemGroup Label="Elsa">
<PackageReference Include="Elsa.Api.Client" Version="3.0.0-preview.882"/>
</ItemGroup>
<ItemGroup Label="Elsa">
<PackageReference Include="Elsa.Api.Client" Version="3.0.0-preview.890"/>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void CreateDataModels()
var execution = LastActivityExecution;
var activityVersion = execution?.ActivityTypeVersion;
var exception = execution?.Exception;
var workflowDefinitionId = activity.GetWorkflowDefinitionId();
var workflowDefinitionId = activity.GetIsWorkflowDefinitionActivity() ? activity.GetWorkflowDefinitionId() : default;

var activityInfo = new Dictionary<string, DataPanelItem>
{
Expand Down

0 comments on commit 6b6bd39

Please sign in to comment.