Plugin Directory

Changeset 3075493


Ignore:
Timestamp:
04/23/2024 07:54:46 AM (2 years ago)
Author:
devsoftbaltic
Message:

fixed https://github.com/surveyjs/surveyjs-wordpress/issues/46

File:
1 edited

Legend:

Unmodified
Added
Removed
  • surveyjs/trunk/views/editor.php

    r3066789 r3075493  
    162162                        creator.text = json;
    163163                        //creator.JSON = surveyJSON;
    164                         creator.theme = JSON.parse('<?php echo htmlspecialchars_decode($themeJson); ?>');
     164                        if (typeof $themeJson !== "undefined" && $themeJson) {
     165                            creator.theme = JSON.parse('<?php echo htmlspecialchars_decode($themeJson); ?>');
     166                        }
    165167                        return (<SurveyCreator.SurveyCreatorComponent creator={creator} />);
    166168                    }
Note: See TracChangeset for help on using the changeset viewer.