Skip to content

Commit

Permalink
fix: use EnhancedTabs::getTabs
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy authored and paodb committed Jul 18, 2024
1 parent 30ab579 commit a66ef42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public SourcePosition getSourcePosition() {

private Optional<Tab> findTabWithFilename(String filename) {
if (tabs != null) {
return tabs.getChildren().filter(Tab.class::isInstance).map(Tab.class::cast).filter(tab -> {
return tabs.getTabs().filter(tab -> {
String url = (String) ComponentUtil.getData(tab, DATA_URL);
return filename == null || getFilename(url).equals(filename);
}).findFirst();
Expand Down

0 comments on commit a66ef42

Please sign in to comment.