mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
Add missing as const for permission string
This commit is contained in:
1 file changed
+1
-1
@@ -139,7 +139,7 @@ export function NpmButton(props: {
|
|||||||
}
|
}
|
||||||
}, [hostId]);
|
}, [hostId]);
|
||||||
|
|
||||||
const coreUpdatePermission = `core.${props.target === "controller" ? "controller" : "host"}.update`;
|
const coreUpdatePermission = `core.${props.target === "controller" ? "controller" : "host"}.update` as const;
|
||||||
|
|
||||||
function onValuesChange({ action } : { action?: string }) {
|
function onValuesChange({ action } : { action?: string }) {
|
||||||
if (action) {
|
if (action) {
|
||||||
|
|||||||
Reference in new issue
Block a user