Fix update sync

pull/1029/head
Andrew Watkins 2017-03-23 17:09:47 -07:00
parent 7265f0f503
commit 635fc9824c
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ export const updateRetentionPolicyAsync = (database, retentionPolicy, updates) =
dispatch(editRetentionPolicy(database, retentionPolicy, updates))
const {data} = await updateRetentionPolicyAJAX(retentionPolicy.links.self, updates)
dispatch(publishNotification('success', 'Retention policy updated successfully'))
dispatch(syncRetentionPolicy(database, data))
dispatch(syncRetentionPolicy(database, retentionPolicy, data))
} catch (error) {
dispatch(publishNotification('error', `Failed to update retention policy: ${error.data.message}`))
}