kareemmahlees / tablex

Cross-Platform table viewer written in Rust
https://tablex-tan.vercel.app
MIT License
64 stars 5 forks source link

[BUG] Foreign key relation button is displayed even if the column doesn't have related data #94

Closed kareemmahlees closed 3 weeks ago

kareemmahlees commented 1 month ago

Describe the bug When a column is said to have a foreign key relation but its value is null, the application crashes trying to find a relation that doesn't exist.

To Reproduce

  1. Create a nullable column that has a foreign key relation to another table
  2. Try to hover or click the foreign key button.

Expected behavior The fk button shouldn't appear if the column value is null, or at least the dropdown should display no result.

Screenshots N/A.

System Info (please complete the following information):

Additional context N/A