mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-12 05:45:27 +00:00
fix: complete fix for #296 - PBS edit now shows PBS form, not PVE form
Ensures each modal (PVE/PBS) only receives editingNode if the node type matches. This prevents PBS edit from showing PVE form and vice versa. Both issues from #296 are now addressed: 1. PBS forms no longer get contaminated with PVE data (previous commit) 2. PBS edit now correctly shows PBS form instead of PVE form (this commit)
This commit is contained in:
parent
443e3093a1
commit
768d60739b
1 changed files with 2 additions and 2 deletions
|
|
@ -1842,7 +1842,7 @@ docker run -d \
|
|||
setModalResetKey(prev => prev + 1);
|
||||
}}
|
||||
nodeType="pve"
|
||||
editingNode={editingNode() ?? undefined}
|
||||
editingNode={editingNode()?.type === 'pve' ? editingNode() ?? undefined : undefined}
|
||||
onSave={async (nodeData) => {
|
||||
try {
|
||||
if (editingNode() && editingNode()!.id) {
|
||||
|
|
@ -1900,7 +1900,7 @@ docker run -d \
|
|||
setModalResetKey(prev => prev + 1);
|
||||
}}
|
||||
nodeType="pbs"
|
||||
editingNode={editingNode() ?? undefined}
|
||||
editingNode={editingNode()?.type === 'pbs' ? editingNode() ?? undefined : undefined}
|
||||
onSave={async (nodeData) => {
|
||||
try {
|
||||
if (editingNode() && editingNode()!.id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue