Skip to content

Commit e50aff1

Browse files
committed
feat(helper): remove comment and adjust check for when manifest is not defined to remove it from query params
1 parent c5f8504 commit e50aff1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/field-plugin/helpers/vite/src/sandbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const buildQueryString = (params: SandboxQueryParams) => {
2020
url: params.url,
2121
}
2222

23-
if (params.manifest !== null) {
23+
if (params.manifest !== undefined) {
2424
queryParams.manifest = JSON.stringify(params.manifest)
2525
}
2626

packages/manifest-helper/src/manifest.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const validateSchema = (manifest: Manifest): void => {
6464
validateOptions(manifest.options)
6565
}
6666

67-
//NOTE: There is a duplicate of this function in the field-plugin/helpers/vite/src/manifest.ts file
6867
const validateOptions = (options: unknown[]): void => {
6968
const incorrectValues: string[] = []
7069

0 commit comments

Comments
 (0)