mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: mobx.esm.js:87 Uncaught Error: [MobX] makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
8227dbf1c8
commit
e69655b192
@ -52,15 +52,12 @@ type Props = {};
|
|||||||
|
|
||||||
@observer
|
@observer
|
||||||
export class DeleteClusterDialog extends React.Component {
|
export class DeleteClusterDialog extends React.Component {
|
||||||
showContextSwitch = false;
|
@observable showContextSwitch = false;
|
||||||
newCurrentContext = "";
|
@observable newCurrentContext = "";
|
||||||
|
|
||||||
constructor(props: Props) {
|
constructor(props: Props) {
|
||||||
super(props);
|
super(props);
|
||||||
makeObservable(this, {
|
makeObservable(this);
|
||||||
showContextSwitch: observable,
|
|
||||||
newCurrentContext: observable,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static open({ config, cluster }: Partial<DialogState>) {
|
static open({ config, cluster }: Partial<DialogState>) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user