mirror of
https://github.com/BramSuurdje/proxmox-helper-scripts.git
synced 2026-09-30 11:48:01 -04:00
fix state bug
This commit is contained in:
@@ -36,11 +36,11 @@ function ScriptItem({
|
||||
.find((script) => script.title === id);
|
||||
setItem(script || null);
|
||||
|
||||
if (script) {
|
||||
if (script && !selectedScript) {
|
||||
setSelectedScript(script.title);
|
||||
}
|
||||
}
|
||||
}, [id, items, setSelectedScript]);
|
||||
}, [id, items, setSelectedScript, selectedScript]);
|
||||
|
||||
const pattern = useMemo(() => /(https:\/\/github\.com\/tteck\/Proxmox\/raw\/main\/(ct|misc|vm)\/([^\/]+)\.sh)/, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user