Merge pull request #1802 from dataease/pr@dev@refactor_panel-view-edit

fix: 修复只修改仪表板名称后,移动端列表不显示仪表板问题
This commit is contained in:
王嘉豪 2022-02-22 11:24:19 +08:00 committed by GitHub
commit f4e229a6f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,11 +74,12 @@ public class PanelViewService {
@Transactional(propagation=Propagation.REQUIRES_NEW)
public Boolean syncPanelViews(PanelGroupWithBLOBs panelGroup){
Boolean mobileLayout = false;
Boolean mobileLayout = null;
String panelId = panelGroup.getId();
Assert.notNull(panelId, "panelId cannot be null");
String panelData = panelGroup.getPanelData();
if(StringUtils.isNotEmpty(panelData)){
mobileLayout = false;
JSONArray dataArray = JSON.parseArray(panelData);
List<PanelViewInsertDTO> panelViewInsertDTOList = new ArrayList<>();
for(int i=0;i<dataArray.size();i++){