Openstatus www.openstatus.dev

fix: dns assertions (#1589)

authored by

Maximilian Kaske and committed by
GitHub
9367cb9a 7168aab0

+12 -4
+12 -4
apps/dashboard/src/components/forms/monitor/form-general.tsx
··· 597 597 variant="outline" 598 598 type="button" 599 599 onClick={() => { 600 + const currentAssertions = 601 + form.getValues("assertions"); 600 602 field.onChange([ 601 - ...field.value, 603 + ...currentAssertions, 602 604 { 603 605 type: "status", 604 606 version: "v1", ··· 616 618 variant="outline" 617 619 type="button" 618 620 onClick={() => { 621 + const currentAssertions = 622 + form.getValues("assertions"); 619 623 field.onChange([ 620 - ...field.value, 624 + ...currentAssertions, 621 625 { 622 626 type: "header", 623 627 version: "v1", ··· 636 640 variant="outline" 637 641 type="button" 638 642 onClick={() => { 643 + const currentAssertions = 644 + form.getValues("assertions"); 639 645 field.onChange([ 640 - ...field.value, 646 + ...currentAssertions, 641 647 { 642 648 type: "textBody", 643 649 version: "v1", ··· 876 882 variant="outline" 877 883 type="button" 878 884 onClick={() => { 885 + const currentAssertions = 886 + form.getValues("assertions"); 879 887 field.onChange([ 880 - ...field.value, 888 + ...currentAssertions, 881 889 { 882 890 type: "dnsRecord", 883 891 version: "v1",