Skip to content

Commit 1b97e59

Browse files
committed
not sure what this fixes
1 parent 26213ae commit 1b97e59

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

klass-forvaltning/src/main/java/no/ssb/klass/designer/ClassificationFamilyView.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,16 @@ public class ClassificationFamilyView extends ClassificationFamilyDesign impleme
4040

4141
private final ClassificationFilter classificationFilter;
4242

43-
@Autowired
4443
private ClassificationFacade classificationFacade;
45-
@Autowired
44+
4645
private UserContext userContext;
4746

48-
public ClassificationFamilyView() {
47+
@Autowired
48+
public ClassificationFamilyView(ClassificationFacade classificationFacade, UserContext userContext) {
49+
this.classificationFacade = classificationFacade;
50+
this.userContext = userContext;
4951
this.classificationFilter = VaadinUtil.getKlassState().getClassificationFilter();
5052
UI.getCurrent().getPage().addBrowserWindowResizeListener(event -> updateGrid(event.getWidth()));
51-
if(userContext != null) {
52-
log.info("userContext: {}", userContext);
53-
}
5453
log.info("ClassificationFamilyView initialized with userContext: {} and classification facade {}", userContext, classificationFacade);
5554
}
5655

0 commit comments

Comments
 (0)