Skip to content

Commit

Permalink
Remove semanticmodel
Browse files Browse the repository at this point in the history
  • Loading branch information
KavinduZoysa committed Jan 29, 2025
1 parent fc4d4ce commit 823bb0a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,11 @@ public CompletableFuture<DataMapperVisualizeResponse> visualizable(DataMapperVis
try {
Path filePath = Path.of(request.filePath());
Project project = this.workspaceManager.loadProject(filePath);
Optional<SemanticModel> semanticModel = this.workspaceManager.semanticModel(filePath);
Optional<Document> document = this.workspaceManager.document(filePath);
if (semanticModel.isEmpty() || document.isEmpty()) {
if (document.isEmpty()) {
return response;
}
DataMapManager dataMapManager = new DataMapManager(workspaceManager, semanticModel.get(),
document.get());
DataMapManager dataMapManager = new DataMapManager(workspaceManager, null, document.get());
response.setVisualizableProperties(dataMapManager.getVisualizableProperties(request.flowNode(),
project, filePath, request.position()));
} catch (Throwable e) {
Expand Down

0 comments on commit 823bb0a

Please sign in to comment.