We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ab579 commit a66ef42Copy full SHA for a66ef42
src/main/java/com/flowingcode/vaadin/addons/demo/MultiSourceCodeViewer.java
@@ -136,7 +136,7 @@ public SourcePosition getSourcePosition() {
136
137
private Optional<Tab> findTabWithFilename(String filename) {
138
if (tabs != null) {
139
- return tabs.getChildren().filter(Tab.class::isInstance).map(Tab.class::cast).filter(tab -> {
+ return tabs.getTabs().filter(tab -> {
140
String url = (String) ComponentUtil.getData(tab, DATA_URL);
141
return filename == null || getFilename(url).equals(filename);
142
}).findFirst();
0 commit comments