Plugin Directory

Changeset 3176754


Ignore:
Timestamp:
10/28/2024 09:04:42 AM (17 months ago)
Author:
devsoftbaltic
Message:

work for the https://github.com/surveyjs/surveyjs-wordpress/issues/45

File:
1 edited

Legend:

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

    r3172936 r3176754  
    169169                        creator.text = json;
    170170                        //creator.JSON = surveyJSON;
    171                         const themeJSON = JSON.parse('<?php echo htmlspecialchars_decode($themeJson); ?>');
    172                         creator.theme = themeJSON;
     171                        const themeJSON = '<?php echo htmlspecialchars_decode($themeJson); ?>';
     172                        if (themeJSON) {
     173                            creator.theme = JSON.parse(themeJSON);
     174                        }
    173175                        return (<SurveyCreator.SurveyCreatorComponent creator={creator} />);
    174176                    }
Note: See TracChangeset for help on using the changeset viewer.