Skip to content

Commit 0817211

Browse files
committed
fix: updated console
1 parent 30975d3 commit 0817211

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/visualBuilder/eventManager/useRevalidateFieldDataPostMessageEvent.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ async function handleRevalidateFieldData(): Promise<void> {
5353
]);
5454

5555
if (fieldSchema && fieldData) {
56-
console.log(
57-
"Successfully revalidated field data for content type:",
58-
fieldMetadata.content_type_uid
59-
);
6056
return;
6157
}
6258
} catch (fieldError) {
@@ -72,16 +68,12 @@ async function handleRevalidateFieldData(): Promise<void> {
7268
// Fallback 1: Clear all field schema cache
7369
try {
7470
FieldSchemaMap.clear();
75-
console.log(
76-
"Cleared all field schema cache due to revalidation request"
77-
);
7871
return;
7972
} catch (clearError) {
80-
console.warn("Failed to clear field schema cache:", clearError);
73+
console.error("Failed to clear field schema cache:", clearError);
8174
}
8275

8376
// Fallback 2: Refresh the entire iframe
84-
console.log("Refreshing iframe due to failed field data revalidation");
8577
window.location.reload();
8678
} catch (error) {
8779
console.error("Error handling revalidate field data:", error);

0 commit comments

Comments
 (0)