Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

fix lint

Guy Ben-Aharonb78a7305c104
diff --git a/src/pages/editor-page/canvas/table-node-field.tsx b/src/pages/editor-page/canvas/table-node-field.tsx
index d8e80ed3..3e240911 100644
--- a/src/pages/editor-page/canvas/table-node-field.tsx
+++ b/src/pages/editor-page/canvas/table-node-field.tsx
@@ -89,11 +89,13 @@ export const TableNodeField: React.FC<TableNodeFieldProps> = ({
{field.name}
</div>
<div className="flex justify-end w-2/3">
- {field.primaryKey? (
+ {field.primaryKey ? (
<div className="text-muted-foreground block group-hover:hidden text-xs text-center overflow-hidden whitespace-nowrap text-ellipsis w-full">
Primary
</div>
- ): ""}
+ ) : (
+ ''
+ )}
<div className="text-muted-foreground block group-hover:hidden text-xs text-right overflow-hidden whitespace-nowrap text-ellipsis w-full">
{field.type}
</div>