Skip to content

Commit

Permalink
fix for getPage method
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Feb 9, 2023
1 parent fc96365 commit 1a4cb1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2473,7 +2473,7 @@ public static PageBase getPageBase(Component component) {

public static <P extends PageAdminLTE> P getPage(Component component, Class<P> pageClass) {
Page page = component.getPage();
if (pageClass.equals(page.getClass())) {
if (pageClass.isAssignableFrom(page.getClass())) {
return (P) page;
} else {
throw new IllegalStateException("Couldn't determine page base for " + page);
Expand Down

0 comments on commit 1a4cb1a

Please sign in to comment.