Skip to content

MMI-3185 Published on behaviour #2436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 8, 2025

Conversation

nehalaggarwal-bcgov
Copy link
Collaborator

Changes to Published On date to show current date on clicking next snippet button.

@nehalaggarwal-bcgov nehalaggarwal-bcgov added bug Something isn't working editor labels Apr 7, 2025
@@ -194,15 +194,11 @@ export const useContentForm = ({

const resetForm = React.useCallback((values: IContentForm) => {
// Reset form for next record.
const parsedDate = moment(values.publishedOn);
const updatedDate = parsedDate.add(1, 'second');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally Scott wanted the published date to increment each time he clicked a new snippet. I assume this behavior is no longer needed.

@nehalaggarwal-bcgov nehalaggarwal-bcgov merged commit 5c6f4b0 into dev Apr 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants