1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 18:35:09 +01:00

fix old edition data bug

This commit is contained in:
Tim Daubenschütz 2015-07-01 15:23:50 +02:00
parent 16c8df2f8d
commit 787f25ddde
2 changed files with 6 additions and 1 deletions

View File

@ -27,7 +27,6 @@ import RequestActionForm from './ascribe_forms/form_request_action';
import EditionActions from '../actions/edition_actions'; import EditionActions from '../actions/edition_actions';
import AclButtonList from './ascribe_buttons/acl_button_list'; import AclButtonList from './ascribe_buttons/acl_button_list';
import fineUploader from 'fineUploader';
import ReactS3FineUploader from './ascribe_uploader/react_s3_fine_uploader'; import ReactS3FineUploader from './ascribe_uploader/react_s3_fine_uploader';
import GlobalNotificationModel from '../models/global_notification_model'; import GlobalNotificationModel from '../models/global_notification_model';

View File

@ -25,6 +25,12 @@ let EditionContainer = React.createClass({
}, },
componentWillUnmount() { componentWillUnmount() {
// Every time we're leaving the edition detail page,
// just reset the edition that is saved in the edition store
// as it will otherwise display wrong/old data once the user loads
// the edition detail a second time
EditionActions.updateEdition({});
EditionStore.unlisten(this.onChange); EditionStore.unlisten(this.onChange);
}, },