Skip to content

Commit 5aee5f9

Browse files
authored
fix update plugin (#517)
1 parent 68f4dc8 commit 5aee5f9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/routes/Plugin/Common/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ import Selector from "./Selector";
3434
import Rule from "./Rule";
3535
import { getCurrentLocale, getIntlContent } from "../../../utils/IntlUtils";
3636
import AuthButton from "../../../utils/AuthButton";
37-
import { getUpdateModal } from "../../../utils/plugin";
38-
import { updateNamespacePluginsEnabledByNamespace } from "../../../utils/namespacePlugin";
37+
import {
38+
getUpdateModal,
39+
updateNamespacePluginsEnabledByNamespace,
40+
} from "../../../utils/namespacePlugin";
3941

4042
const { Search } = Input;
4143
const { Title } = Typography;
@@ -398,7 +400,8 @@ export default class Common extends Component {
398400
: "";
399401
const plugin = this.getPlugin(plugins, pluginName);
400402
getUpdateModal({
401-
pluginId: plugin.pluginId,
403+
id: plugin.id,
404+
namespaceId: plugin.namespaceId,
402405
dispatch,
403406
callback: (popup) => {
404407
this.setState({ popup });

0 commit comments

Comments
 (0)