Skip to content

Commit

Permalink
chore: remove unuse isEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Aug 20, 2024
1 parent d06aeff commit ee9143c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/providers/template/src/pages/develop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { downLoadBold } from '@/utils/tools';
import { Button, Center, Flex, Spinner, Text } from '@chakra-ui/react';
import { useQuery } from '@tanstack/react-query';
import dayjs from 'dayjs';
import { debounce, has, isEqual, isObject, mapValues } from 'lodash';
import { debounce, has, isObject, mapValues } from 'lodash';
import { useTranslation } from 'next-i18next';
import { useCallback, useEffect, useRef, useState } from 'react';
import { useForm } from 'react-hook-form';
Expand Down Expand Up @@ -71,7 +71,7 @@ export default function Develop() {
try {
const result = getYamlSource(str, platformEnvs);
const formInputs = formHook.getValues();
isEqual(result, templateSource) || setTemplateSource(result);
setTemplateSource(result);
const correctYamlList = generateYamlData(result, formInputs);
setYamlList(correctYamlList);
} catch (error: any) {
Expand Down

0 comments on commit ee9143c

Please sign in to comment.