File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/field-plugin/helpers/vite/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import * as querystring from 'querystring'
2
- import { bold , red } from './utils/text'
2
+ import { bold } from './utils/text'
3
3
import { arrows } from './utils/arrows'
4
4
import { load , manifestExists , MANIFEST_FILE_NAME } from './manifest'
5
5
import type { Manifest } from './manifest'
@@ -16,11 +16,11 @@ export const buildQueryString = (params: SandboxQueryParams) => {
16
16
url : params . url ,
17
17
}
18
18
19
- if ( params . manifest = == null ) {
20
- return querystring . stringify ( queryParams )
19
+ if ( params . manifest ! == null ) {
20
+ queryParams . manifest = JSON . stringify ( params . manifest )
21
21
}
22
22
23
- queryParams . manifest = JSON . stringify ( params . manifest )
23
+ return querystring . stringify ( queryParams )
24
24
}
25
25
26
26
export const generateSandboxUrl = ( fieldPluginUrl : string ) => {
@@ -58,4 +58,4 @@ const displayManifestChecking = () => {
58
58
}
59
59
60
60
const displayManifestErrorLoading = ( err : Error ) =>
61
- console . log ( `${ arrows . red } ${ red ( `${ err . message } ` ) } ` )
61
+ console . log ( `${ arrows . red } ${ bold ( `${ err . message } ` ) } ` )
You can’t perform that action at this time.
0 commit comments