Skip to content

Commit

Permalink
fix(media): adjust query key to load image in preview on upload (#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj authored Oct 18, 2023
1 parent eeed4d3 commit e731a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/mediaHooks/useGetMultipleMediaHook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const useGetMultipleMediaHook = (
queryOptions?: Omit<UseQueryOptions<MediaData[]>, "queryFn" | "queryKey">
): UseQueryResult<MediaData[]> => {
return useQuery<MediaData[]>(
[MEDIA_MULTIPLE_CONTENT_KEY, params],
[MEDIA_MULTIPLE_CONTENT_KEY, ...params.mediaSrcs],
() => getMultipleMedia(params),
{
...queryOptions,
Expand Down

0 comments on commit e731a7c

Please sign in to comment.