We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac7de7 commit 6a9d835Copy full SHA for 6a9d835
src/project/project-shared.ts
@@ -579,11 +579,14 @@ export async function projectResolveBrand(
579
return project.brandCache.brand;
580
} else {
581
const metadata = await project.fileMetadata(fileName);
582
+ if (metadata.brand === undefined) {
583
+ return project.resolveBrand();
584
+ }
585
const brand = Zod.BrandPathBoolLightDark.parse(metadata.brand);
586
if (brand === false) {
587
return undefined;
588
}
- if (brand === true || brand === undefined) {
589
+ if (brand === true) {
590
return project.resolveBrand();
591
592
const fileInformation = ensureFileInformationCache(project, fileName);
0 commit comments