Fix link to table in metadata editor when exists foreign keys