mirror of
https://github.com/WDI-Ideas/rubix-admin-panel.git
synced 2026-04-27 17:35:50 +00:00
bugfix 0.0.1
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user