filter output from localStorage

pull/3525/head
Berkeley Martinez 2015-09-25 00:04:38 -07:00
parent 8148c1a19c
commit c63a983fb9
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ export default Actions({
jobActions.getSavedForm.subscribe(() => {
const job = store.get('newJob');
jobActions.setForm(job);
if (job && !Array.isArray(job) && typeof job === 'object') {
jobActions.setForm(job);
}
});
return jobActions;
});