Skip to content

Commit cb98dad

Browse files
committed
fix: requested changes done
1 parent b84c08a commit cb98dad

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/visualBuilder/components/fieldLabelWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function FieldLabelWrapperComponent(
236236
>
237237
{(() => {
238238
const [before, after] = reason.split(
239-
/here/i
239+
"here"
240240
);
241241
return (
242242
<>

src/visualBuilder/eventManager/useRevalidateFieldDataPostMessageEvent.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ export async function handleRevalidateFieldData(): Promise<void> {
5757
return;
5858
} catch (clearError) {
5959
console.error("Failed to clear field schema cache:", clearError);
60+
// Fallback 2: Refresh the entire iframe
61+
window.location.reload();
6062
}
61-
62-
// Fallback 2: Refresh the entire iframe
63-
window.location.reload();
6463
} catch (error) {
6564
console.error("Error handling revalidate field data:", error);
6665
// Final fallback - refresh the page

src/visualBuilder/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,13 @@ export class VisualBuilder {
380380
document.body.style.overflow = "hidden";
381381
} else {
382382
document.body.style.overflow = "auto";
383+
383384
}
384385
}
385386
);
386387

388+
389+
387390
useHideFocusOverlayPostMessageEvent({
388391
overlayWrapper: this.overlayWrapper,
389392
visualBuilderContainer: this.visualBuilderContainer,

src/visualBuilder/visualBuilder.style.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,10 @@ export function visualBuilderStyles() {
300300
border-style: solid;
301301
align-content: center;
302302
text-align: center;
303-
border-color: #bd59fa;
303+
border-color: #BD59FA;
304304
305305
svg {
306-
color: #bd59fa;
306+
color: #BD59FA;
307307
}
308308
`,
309309
"visual-builder__focused-toolbar": css`
@@ -532,7 +532,7 @@ export function visualBuilderStyles() {
532532
`,
533533
"visual-builder__focused-toolbar--variant": css`
534534
.visual-builder__focused-toolbar__field-label-wrapper__current-field {
535-
background: #bd59fa;
535+
background: #BD59FA;
536536
}
537537
`,
538538
"visual-builder__cursor-disabled": css`
@@ -665,7 +665,7 @@ export function visualBuilderStyles() {
665665
outline: 2px dashed #909090;
666666
`,
667667
"visual-builder__hover-outline--variant": css`
668-
outline: 2px dashed #bd59fa;
668+
outline: 2px dashed #BD59FA;
669669
`,
670670
"visual-builder__default-cursor--disabled": css`
671671
cursor: none;

0 commit comments

Comments
 (0)