Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix issue of not being able to override an image in asset modal
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite committed Jun 30, 2022
1 parent ad2c0e3 commit 3f984ff
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/molecules/Common/AssetModal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, useState, useEffect, ComponentType } from "react";
import React, { useCallback, useState, ComponentType } from "react";

import Button from "@reearth/components/atoms/Button";
import Flex from "@reearth/components/atoms/Flex";
Expand Down Expand Up @@ -83,11 +83,6 @@ const AssetModal: React.FC<Props> = ({
toggleAssetModal?.(false);
}, [toggleAssetModal, resetValues]);

useEffect(() => {
resetValues();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [initialAssetUrl, showURL]);

return videoOnly ? (
<Modal
size="sm"
Expand Down

0 comments on commit 3f984ff

Please sign in to comment.