mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix not being able to clear set cluster icon (#4555)
This commit is contained in:
1 parent
56e72b3a74
commit
d775d53078
3 files changed
+19
-5
No files matched your search
@@ -65,7 +65,11 @@ export class ClusterIconSetting extends React.Component<Props> {
|
||||
}
|
||||
|
||||
clearIcon() {
|
||||
this.props.cluster.preferences.icon = undefined;
|
||||
/**
|
||||
* NOTE: this needs to be `null` rather than `undefined` so that we can
|
||||
* tell the difference between it not being there and being cleared.
|
||||
*/
|
||||
this.props.cluster.preferences.icon = null;
|
||||
}
|
||||
|
||||
@boundMethod
|
||||
|
||||
Reference in new issue
Block a user