mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-13 16:36:41 +00:00
Fix various bugs
This commit is contained in:
@@ -666,7 +666,7 @@ export default function ReverseProxyTargets(props: {
|
||||
...target,
|
||||
...data,
|
||||
updated: true,
|
||||
// siteType: site?.type || null
|
||||
siteType: site ? site.type : target.siteType
|
||||
}
|
||||
: target
|
||||
)
|
||||
|
||||
@@ -375,8 +375,8 @@ export default function Page() {
|
||||
// Helper function to check if all targets have required fields using schema validation
|
||||
const areAllTargetsValid = () => {
|
||||
if (targets.length === 0) return true; // No targets is valid
|
||||
|
||||
return targets.every(target => {
|
||||
|
||||
return targets.every((target) => {
|
||||
try {
|
||||
addTargetSchema.parse({
|
||||
ip: target.ip,
|
||||
@@ -518,8 +518,8 @@ export default function Page() {
|
||||
? {
|
||||
...target,
|
||||
...data,
|
||||
updated: true
|
||||
// siteType: site?.type || null
|
||||
updated: true,
|
||||
siteType: site ? site.type : target.siteType
|
||||
}
|
||||
: target
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user