Showing
1 changed file
with
2 additions
and
3 deletions
| ... | ... | @@ -5042,11 +5042,10 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { | 
| 5042 | 5042 | defHttp.get('/yt/configuration/center/getConfigurationInfo/'+Editor.configurationId) | 
| 5043 | 5043 | .then(function (response) { | 
| 5044 | 5044 | console.log({response}) | 
| 5045 | - const { configurationContentList: [ data = {}] = [] } = response || {} | |
| 5046 | - const phoneFlag = data.platform | |
| 5045 | + const { platform } = response || {} | |
| 5047 | 5046 | const pageSizeControl = PageSetupDialog.getFormats | 
| 5048 | 5047 | PageSetupDialog.getFormats = function () { | 
| 5049 | - if (phoneFlag === 'phone') { | |
| 5048 | + if (platform === 'phone') { | |
| 5050 | 5049 | return [ | 
| 5051 | 5050 | {key: 'iPhone 8', title: 'iPhone 8', format: new mxRectangle(0, 0, 375, 667)}, | 
| 5052 | 5051 | {key: 'iPhone 8 Plus', title: 'iPhone 8 Plus', format: new mxRectangle(0, 0, 415, 737)}, | ... | ... |