Fix moving resources

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-11-03 12:10:59 +01:00
parent 62dd1b85b7
commit 29de9b346a
7 changed files with 82 additions and 63 deletions

View File

@@ -80,7 +80,7 @@
has-modal-card
:close-button-aria-label="t('Close')"
>
<div class="w-full md:w-[640px]">
<div class="w-full">
<section>
<resource-selector
:initialResource="updatedResource"
@@ -567,6 +567,9 @@ const updateResource = async (
resourceToUpdate: IResource,
parentPath: string | null = null
): Promise<void> => {
console.debug(
`Update resource « ${resourceToUpdate.title} » at path ${resourceToUpdate.path}`
);
updateResourceMutation(
{
id: resourceToUpdate.id,