Explorar el Código

fix: #907 (#908)

dongchengjie hace 1 año
padre
commit
2074da05c8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/components/profile/profile-viewer.tsx

+ 2 - 0
src/components/profile/profile-viewer.tsx

@@ -97,6 +97,8 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
           }
           if (form.option?.update_interval) {
             form.option.update_interval = +form.option.update_interval;
+          } else {
+            delete form.option?.update_interval;
           }
           if (form.option?.user_agent === "") {
             delete form.option.user_agent;