mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Use empty array as initial state of piece and edition list notifications
This commit is contained in:
parent
5e6b483149
commit
874aad05b8
@ -12,8 +12,8 @@ class NotificationActions {
|
||||
'flushPieceListNotifications',
|
||||
'updateEditionListNotifications',
|
||||
'flushEditionListNotifications',
|
||||
'updateEditionNotifications',
|
||||
'updatePieceNotifications',
|
||||
'updateEditionNotifications',
|
||||
'updateContractAgreementListNotifications',
|
||||
'flushContractAgreementListNotifications'
|
||||
);
|
||||
|
@ -8,13 +8,15 @@ import NotificationActions from '../actions/notification_actions';
|
||||
|
||||
class NotificationStore {
|
||||
constructor() {
|
||||
this.pieceListNotifications = {};
|
||||
this.editionListNotifications = {};
|
||||
this.pieceListNotifications = [];
|
||||
this.pieceNotifications = null;
|
||||
this.editionListNotifications = [];
|
||||
this.editionNotifications = null;
|
||||
|
||||
// Need to determine if contract agreement notifications have been loaded or not,
|
||||
// so we use null here instead of an empty array
|
||||
this.contractAgreementListNotifications = null;
|
||||
this.editionNotifications = null;
|
||||
this.pieceNotifications = null;
|
||||
|
||||
this.bindActions(NotificationActions);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user