Skip to content

The open alternative to Salesforce, designed for AI.

Fix console errors (#10859)

martmullb1322beac31b
diff --git a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationRecordsListItem.tsx b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationRecordsListItem.tsx
index 407e0e0d6d8..b1d12405451 100644
--- a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationRecordsListItem.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationRecordsListItem.tsx
@@ -83,7 +83,7 @@ const StyledClickableZone = styled.div`
justify-content: flex-end;
`;
-const MotionIconChevronDown = motion(IconChevronDown);
+const MotionIconChevronDown = motion.create(IconChevronDown);
type RecordDetailRelationRecordsListItemProps = {
isExpanded: boolean;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTable.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTable.tsx
index a0787d1cec6..e7ad8f56a16 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTable.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTable.tsx
@@ -28,7 +28,7 @@ const StyledTable = styled.table`
table-layout: fixed;
width: 100%;
- .footer-sticky tr:nth-last-child(2) td {
+ .footer-sticky tr:nth-last-of-type(2) td {
border-bottom-color: ${({ theme }) => theme.background.transparent};
}
`;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableDraggableTr.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableDraggableTr.tsx
index d6622a3577e..e46e57d8c7c 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableDraggableTr.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableDraggableTr.tsx
@@ -15,7 +15,7 @@ type RecordTableDraggableTrProps = {
children: ReactNode;
};
-const StyledAbsoluteInViewContainer = styled.div`
+const StyledAbsoluteInViewContainer = styled.td`
position: absolute;
top: 0;
left: 0;
diff --git a/packages/twenty-front/src/modules/ui/layout/page-header/components/PageHeaderOpenCommandMenuButton.tsx b/packages/twenty-front/src/modules/ui/layout/page-header/components/PageHeaderOpenCommandMenuButton.tsx
index bc3601abafa..c1e74535ca7 100644
--- a/packages/twenty-front/src/modules/ui/layout/page-header/components/PageHeaderOpenCommandMenuButton.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/page-header/components/PageHeaderOpenCommandMenuButton.tsx
@@ -43,6 +43,7 @@ const AnimatedIcon = ({
cx={12}
cy={12}
r="1"
+ initial={{ opacity: 0 }}
animate={{
scale: isCommandMenuOpened ? 0 : 1,
opacity: isCommandMenuOpened ? 0 : 1,
@@ -55,7 +56,7 @@ const AnimatedIcon = ({
<motion.path
key={index}
d={path}
- initial={{ pathLength: 0 }}
+ initial={{ pathLength: 0, opacity: 0 }}
animate={{
pathLength: isCommandMenuOpened ? 1 : 0,
opacity: isCommandMenuOpened ? 1 : 0,
@@ -73,6 +74,7 @@ const AnimatedIcon = ({
cx="12"
cy="5"
r="1"
+ initial={{ opacity: 0 }}
animate={{
scale: isCommandMenuOpened ? 0 : 1,
opacity: isCommandMenuOpened ? 0 : 1,
@@ -85,6 +87,7 @@ const AnimatedIcon = ({
cx="12"
cy="19"
r="1"
+ initial={{ opacity: 0 }}
animate={{
scale: isCommandMenuOpened ? 0 : 1,
opacity: isCommandMenuOpened ? 0 : 1,
diff --git a/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/internal/JsonArrow.tsx b/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/internal/JsonArrow.tsx
index aa94225edf7..60ddf0e13d9 100644
--- a/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/internal/JsonArrow.tsx
+++ b/packages/twenty-front/src/modules/workflow/components/json-visualizer/components/internal/JsonArrow.tsx
@@ -20,7 +20,7 @@ const StyledButton = styled(motion.button)`
cursor: pointer;
`;
-const MotionIconChevronDown = motion(IconChevronDown);
+const MotionIconChevronDown = motion.create(IconChevronDown);
export const JsonArrow = ({
isOpen,
diff --git a/packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommandHotKeys.tsx b/packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommandHotKeys.tsx
index 23e10d2e02a..075fa5e1c30 100644
--- a/packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommandHotKeys.tsx
+++ b/packages/twenty-ui/src/navigation/menu-item/components/MenuItemCommandHotKeys.tsx
@@ -1,3 +1,4 @@
+import React from 'react';
import styled from '@emotion/styled';
const StyledCommandTextContainer = styled.div`
@@ -47,10 +48,10 @@ export const MenuItemCommandHotKeys = ({
{hotKeys && (
<StyledCommandTextContainer>
{hotKeys.map((hotKey, index) => (
- <>
- <StyledCommandKey key={index}>{hotKey}</StyledCommandKey>
+ <React.Fragment key={index}>
+ <StyledCommandKey>{hotKey}</StyledCommandKey>
{index < hotKeys.length - 1 && joinLabel}
- </>
+ </React.Fragment>
))}
</StyledCommandTextContainer>
)}