Mercurial > gemma
changeset 1945:f64bc12c1719
import stretches: minor fix
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 22 Jan 2019 09:27:15 +0100 |
parents | ef1184654839 |
children | f88773a2c0a0 |
files | client/src/store/imports.js |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/imports.js Mon Jan 21 18:36:03 2019 +0100 +++ b/client/src/store/imports.js Tue Jan 22 09:27:15 2019 +0100 @@ -237,7 +237,11 @@ } ) .then(response => { - commit("setStretches", response.data.features); + if (response.data.features) { + commit("setStretches", response.data.features); + } else { + commit("setStretches", []); + } resolve(response); }) .catch(error => {