Skip to content

Commit

Permalink
Update GraphMetadataViewModel.cs (#15073)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusongit authored Apr 1, 2024
1 parent a700a67 commit a39f243
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/GraphMetadataViewExtension/GraphMetadataViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,13 @@ private void OnCurrentWorkspaceChanged(Graph.Workspaces.IWorkspaceModel obj)
return;
}

if (string.IsNullOrEmpty(hwm.FileName))
if (!hwm.IsTemplate && string.IsNullOrEmpty(hwm.FileName) )
{
GraphDescription = string.Empty;
GraphAuthor = string.Empty;
HelpLink = null;
Thumbnail = null;
}

else
{
currentWorkspace = hwm;
Expand Down

0 comments on commit a39f243

Please sign in to comment.