Skip to content

Commit

Permalink
#1851 Tiny app not working (#1852) (#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlyn authored Apr 9, 2024
1 parent 1e7b42d commit c5266d4
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,14 @@ export default class CanvasController {

setCanvasConfig(config) {
this.logger.log("Setting Canvas Config");
// TODO - Remove these next three lines in next major release.
const correctConfig = this.correctTypo(config);
correctConfig.enableNodeLayout =
CanvasUtils.convertPortPosInfo(correctConfig.enableNodeLayout);
this.objectModel.openPaletteIfNecessary(config);
this.objectModel.setCanvasConfig(correctConfig);
if (config) {
// TODO - Remove these next three lines in next major release.
const correctConfig = this.correctTypo(config);
correctConfig.enableNodeLayout =
CanvasUtils.convertPortPosInfo(correctConfig.enableNodeLayout);
this.objectModel.openPaletteIfNecessary(config);
this.objectModel.setCanvasConfig(correctConfig);
}
}

// Converts the config option 'enableHightlightNodeOnNewLinkDrag' (which has
Expand Down

0 comments on commit c5266d4

Please sign in to comment.