Fix display of database rows when password is not available
closes #4381
This commit is contained in:
parent
bf2456d0fc
commit
e040fd1ebd
2 changed files with 7 additions and 10 deletions
|
@ -15,8 +15,7 @@ export const rawDataToServerDatabase = (data: any): ServerDatabase => ({
|
|||
username: data.username,
|
||||
connectionString: `${data.host.address}:${data.host.port}`,
|
||||
allowConnectionsFrom: data.connections_from,
|
||||
password:
|
||||
data.relationships && data.relationships.password ? data.relationships.password.attributes.password : undefined,
|
||||
password: data.relationships.password?.attributes?.password,
|
||||
});
|
||||
|
||||
export default (uuid: string, includePassword = true): Promise<ServerDatabase[]> => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue