fix: selecting label once create using modal (#1537)

This commit is contained in:
Dakshesh Jain 2023-07-18 12:08:09 +05:30 committed by GitHub
parent 16a7bd3bda
commit 9d891ecce1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 1 deletions

View file

@ -553,6 +553,11 @@ const SinglePage: NextPage = () => {
handleClose={() => setLabelModal(false)}
projectId={projectId}
user={user}
onSuccess={(response) => {
partialUpdatePage({
labels_list: [...(pageDetails.labels ?? []), response.id],
});
}}
/>
)}
</>