Skip to content

Hotfixes - Cannot perform the 'Undo' operation on a folder or uploaded file/exercise in a new channel #3703

@pcenov

Description

@pcenov

Observed behavior

I can't perform the 'Undo' operation on a new folder or newly uploaded file in a new channel. After manually restoring the deleted resource from the Trash it can no longer be deleted.

Expected behavior

It should always be possible to perform the 'Undo' operation on a folder or a resource

Steps to reproduce the issue

  1. Go to https://hotfixes.studio.learningequality.org/en/accounts/#/ and sign in
  2. Create a brand new channel
  3. Add a folder or upload a resource
  4. Remove the resource and click the 'Undo' button

Additional information

Video:
https://user-images.githubusercontent.com/79847249/193264961-763f306e-1c81-47c7-99cd-d36728defc55.mp4

Error Log:


<details>
<summary>Details</summary>
/en/channels/6c86bd17ad134dbcb1264a5ecbdfe128/#/fa0aa322e066488a9afeda559d7db215/topics/cb49238402304f28b48ff2eba3f424a0/details:1 Autofocus processing was blocked because a document already has a focused element.
changes.js:123 Uncaught (in promise) r {_e: Error
    at q (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e1…, name: 'TransactionInactiveError', message: 'Transaction has already completed or failed', inner: null}inner: nullmessage: "Transaction has already completed or failed"name: "TransactionInactiveError"_e: Error
    at q (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:2987985)
    at new r (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:2989622)
    at Qt._promise (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:3022335)
    at $n._transaction (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:3054730)
    at $n.transaction (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:3053769)
    at TreeResource.transaction (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:3097268)
    at TreeResource.setData (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:3097422)
    at https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:3103922
    at https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:2999723
    at Fe (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:2994455)
    at Ue (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:2995211)
    at qe (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-dac8404c0e179c7f9bd1.js:8:2995062)stack: (...)[[Prototype]]: W

</details>

Usage Details

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions