bugfix 0.0.1

This commit is contained in:
2024-06-07 13:54:41 +05:30
parent ae9219f6b0
commit fe7fe6749f
3 changed files with 7 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ const EditBlogsAndArticles = () => {
const toast = useToast();
const navigate = useNavigate();
const [updateBlog] = useUpdateBlogMutation();
const { data, error, isLoading } = useGetBlogByIdQuery(id);
const { data, error, isLoading, refetch } = useGetBlogByIdQuery(id);
const blog = data?.data;
const [isLoading01, setIsLoading01] = useState(false);
const [selectedImage, setSelectedImage] = useState(fallbackImage);
@@ -142,6 +142,7 @@ const EditBlogsAndArticles = () => {
),
});
reset();
refetch();
navigate("/blogs-articles");
} else if (response?.error?.status === 500) {
setIsLoading01(false);

View File

@@ -232,7 +232,11 @@ const AddVideos = () => {
placeholder="https://www.youtube.com/embed/..."
className="web-text-medium"
size="sm"
maxLength={90}
/>
<FormHelperText className="web-text-small">
Please enter duration Hrs:Min:Sec format.
</FormHelperText>
{errors.embeddedCode && (
<span className="text-danger web-text-small fw-bold ps-2 d-flex align-items-center gap-1 mt-1">
<TiWarning className="fw-bold fs-5 " /> {errors.embeddedCode.message}

View File

@@ -273,7 +273,7 @@ const EditVideos = () => {
maxLength={90}
/>
<FormHelperText className="web-text-small">
Pls mention Hrs/mins/secs in the field.
Please enter duration Hrs:Min:Sec format.
</FormHelperText>
{errors.duration && (