1
0
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:
Roman 2021-11-16 15:52:38 +02:00
parent 8227dbf1c8
commit e69655b192

View File

@ -52,15 +52,12 @@ type Props = {};
@observer
export class DeleteClusterDialog extends React.Component {
showContextSwitch = false;
newCurrentContext = "";
@observable showContextSwitch = false;
@observable newCurrentContext = "";
constructor(props: Props) {
super(props);
makeObservable(this, {
showContextSwitch: observable,
newCurrentContext: observable,
});
makeObservable(this);
}
static open({ config, cluster }: Partial<DialogState>) {