Skip to content

Commit ef4a1b7

Browse files
author
dushixiang
committed
修复 DDNS 无法编译的问题
1 parent 1dbbee9 commit ef4a1b7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/src/pages/DDNS/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ const DDNSPage = () => {
101101
width: 250,
102102
render: (_, record) => {
103103
const allDomains = [
104-
...((record.domainsIpv4 || []).map(d => ({domain: d, type: 'IPv4'}))),
105-
...((record.domainsIpv6 || []).map(d => ({domain: d, type: 'IPv6'})))
104+
...((record.domainsIpv4 as string[] || []).map(d => ({domain: d, type: 'IPv4'}))),
105+
...((record.domainsIpv6 as string[] || []).map(d => ({domain: d, type: 'IPv6'})))
106106
];
107107
return (
108108
<div className="flex flex-wrap gap-1">
@@ -260,7 +260,6 @@ const DDNSPage = () => {
260260
<DDNSModal
261261
open={modalOpen}
262262
id={selectedConfig?.id}
263-
config={selectedConfig || undefined}
264263
onCancel={() => {
265264
setModalOpen(false);
266265
setSelectedConfig(null);

0 commit comments

Comments
 (0)