fix: revert last change with domain check

This commit is contained in:
Andras Bacsai 2022-09-07 09:15:03 +02:00
parent 2f772080b8
commit 05a1721499
2 changed files with 1 additions and 3 deletions

View File

@ -525,9 +525,7 @@ export async function checkDomain(request: FastifyRequest<CheckDomain>) {
}
export async function checkDNS(request: FastifyRequest<CheckDNS>) {
try {
const { id } = request.params
let { exposePort, fqdn, forceSave, dualCerts } = request.body
if (!fqdn) {
return {}

View File

@ -218,7 +218,7 @@
if (loading) return;
loading = true;
try {
nonWWWDomain = application.fqdn != null && getDomain(application.fqdn).replace(/^www\./, '');
nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, '');
if (application.deploymentType)
application.deploymentType = application.deploymentType.toLowerCase();
!isBot &&