-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update model importer function to deal with model "updating"
When mosaico is loaded it also support updating an obsolete model to a newer template with additional properties, but "viewModel.importJSON" throw an error when the model is different from what is expected. Now viewModel.importJSON uses "checkModel" to update it when needed. See #279
- Loading branch information
Showing
2 changed files
with
42 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters