mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-20 18:23:47 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user