File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ export default (): m.Component<GeneratorEditorProps> => {
107
107
) ,
108
108
m (
109
109
Flex ,
110
- { gap : 2 } ,
110
+ { gap : 2 , wrap : 'wrap' } ,
111
111
attrs . generator . dataSources . map ( ( s ) =>
112
112
m (
113
113
Label ,
Original file line number Diff line number Diff line change 1
1
import m from 'mithril' ;
2
2
3
- import Generator from 'js/types/generator' ;
3
+ import Generator , { sanitizeConfig } from 'js/types/generator' ;
4
4
import * as API from 'js/core/api' ;
5
5
import { settings } from 'js/core/store' ;
6
6
import { render } from 'js/core/templating' ;
@@ -35,7 +35,7 @@ export default (): m.Component<ExternPrintProps> => {
35
35
render ( gen . printTemplate , {
36
36
sources : gen . dataSources ,
37
37
images : gen . images ,
38
- config : JSON . parse ( atob ( attrs . config ) ) ,
38
+ config : sanitizeConfig ( gen , JSON . parse ( atob ( attrs . config ) ) ) ,
39
39
settings : settings . value ,
40
40
} )
41
41
. then ( ( res ) => {
You can’t perform that action at this time.
0 commit comments