Skip to content

Commit

Permalink
fix posts are failing to be created as Admin user (datahub-project#9533)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav2733 authored Jan 2, 2024
1 parent 06bd9b9 commit 31f9c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahub-web-react/src/app/settings/posts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const addToListPostCache = (client, newPost, pageSize) => {
});

// Add our new post into the existing list.
const newPosts = [newPost, ...(currData?.listPosts?.posts || [])];
const newPosts = [...(currData?.listPosts?.posts || [])];

// Write our data back to the cache.
client.writeQuery({
Expand Down

0 comments on commit 31f9c79

Please sign in to comment.