mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Do not copy if title isn't of type 'string' (#3657)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
d3ce43e73d
commit
7b48ab0279
3 files changed
+5
-3
No files matched your search
@@ -163,7 +163,9 @@ export class Drawer extends React.Component<DrawerProps> {
|
||||
<div className="drawer-title flex align-center">
|
||||
<div className="drawer-title-text flex gaps align-center">
|
||||
{title}
|
||||
<Icon material={copyIcon} tooltip={copyTooltip} onClick={this.copyK8sObjName}/>
|
||||
{typeof title == "string" && (
|
||||
<Icon material={copyIcon} tooltip={copyTooltip} onClick={this.copyK8sObjName}/>
|
||||
)}
|
||||
</div>
|
||||
{toolbar}
|
||||
<Icon material="close" onClick={this.close}/>
|
||||
|
||||
Reference in new issue
Block a user