diff --git a/web/pgadmin/tools/search_objects/static/js/SearchObjects.jsx b/web/pgadmin/tools/search_objects/static/js/SearchObjects.jsx
index b0593c00c..649302ee6 100644
--- a/web/pgadmin/tools/search_objects/static/js/SearchObjects.jsx
+++ b/web/pgadmin/tools/search_objects/static/js/SearchObjects.jsx
@@ -77,6 +77,10 @@ const useStyles = makeStyles((theme)=>({
color: `${theme.otherVars.textMuted} !important`,
cursor: 'default !important',
},
+ textWrap: {
+ textOverflow: 'ellipsis',
+ overflow: 'hidden'
+ }
}));
function ObjectNameFormatter({row}) {
@@ -97,14 +101,23 @@ ObjectNameFormatter.propTypes = {
row: PropTypes.object,
};
-function TypePathFormatter({row}) {
+function TypePathFormatter({row, column}) {
const classes = useStyles();
+ let val = '';
+
+ if(column.key == 'type') {
+ val = row.type_label;
+ } else if(column.key == 'path') {
+ val = row.path;
+ }
+
return (
- {row.type_label}
+ {val}
);
}
TypePathFormatter.propTypes = {
row: PropTypes.object,
+ column: PropTypes.object,
};