mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 16:13:12 +09:00
Don't break version selector
This commit is contained in:
1 parent
9061d2aa92
commit
2eedddf17f
2 files changed
+3
-3
No files matched your search
@@ -48,7 +48,7 @@ export default function InputPartialVersion (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
title: majorMinor,
|
title: majorMinor,
|
||||||
value: groupKey,
|
value: majorMinor,
|
||||||
key: groupKey,
|
key: groupKey,
|
||||||
children: patchVersions.map((v) => ({
|
children: patchVersions.map((v) => ({
|
||||||
title: v,
|
title: v,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React, { useContext, useEffect, useState } from "react";
|
|||||||
import { TreeSelect } from "antd";
|
import { TreeSelect } from "antd";
|
||||||
|
|
||||||
import * as lib from "@clusterio/lib";
|
import * as lib from "@clusterio/lib";
|
||||||
import { InputComponentProps } from "../BaseWebPlugin";
|
import type { InputComponentProps } from "../BaseWebPlugin";
|
||||||
import { useAccount } from "../model/account";
|
import { useAccount } from "../model/account";
|
||||||
import ControlContext from "./ControlContext";
|
import ControlContext from "./ControlContext";
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ export default function InputTargetVersion (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
title: majorMinor,
|
title: majorMinor,
|
||||||
value: groupKey,
|
value: majorMinor,
|
||||||
key: groupKey,
|
key: groupKey,
|
||||||
children: patchVersions.map((v) => ({
|
children: patchVersions.map((v) => ({
|
||||||
title: v,
|
title: v,
|
||||||
|
|||||||
Reference in new issue
Block a user