Skip to content

Commit

Permalink
fixes serialization error after duplicate dashboard column
Browse files Browse the repository at this point in the history
  • Loading branch information
OnkelDok authored and buchen committed Feb 24, 2023
1 parent 7a36298 commit 5c6e5ec
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -11,6 +11,7 @@
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.function.Supplier;
import java.util.stream.Collectors;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
Expand Down Expand Up @@ -878,7 +879,7 @@ private void duplicateColumn(Dashboard.Column column, Composite columnControl)
Dashboard.Column newColumn = new Dashboard.Column();
dashboard.getColumns().add(index, newColumn);

newColumn.setWidgets(column.getWidgets().stream().map(Widget::copy).toList());
newColumn.setWidgets(column.getWidgets().stream().map(Widget::copy).collect(Collectors.toList()));

getClient().touch();

Expand Down

0 comments on commit 5c6e5ec

Please sign in to comment.