This commit is contained in:
Manav Rathi
2025-02-25 14:35:50 +05:30
parent 052367cccb
commit 2fee6e87f9

View File

@@ -663,6 +663,8 @@ const CreationTime: React.FC<CreationTimeProps> = ({
allowEdits,
scheduleUpdate,
}) => {
const { onGenericError } = useBaseContext();
const [loading, setLoading] = useState(false);
const [isInEditMode, setIsInEditMode] = useState(false);
@@ -705,7 +707,7 @@ const CreationTime: React.FC<CreationTimeProps> = ({
scheduleUpdate();
}
} catch (e) {
log.error("failed to update creationTime", e);
onGenericError(e);
} finally {
closeEditMode();
setLoading(false);