From 180c052d4dca98ca06b655d0a89fbc0e482c5e2c Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Fri, 22 Mar 2024 09:24:53 +0700 Subject: [PATCH] Support updating column is unique when editing table in side panel (#22121) --- .../SidePanelEditor/TableEditor/Column.tsx | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx index 141518e4fc6..024687586c3 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx @@ -157,19 +157,14 @@ const Column = ({ )} - - {column.isNewColumn && ( - <> - onUpdateColumn({ isUnique: !column.isUnique })} - /> - - - )} + onUpdateColumn({ isUnique: !column.isUnique })} + /> + {column.format.includes('int') && ( <>