Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GéoContrib
Géocontrib Frontend
Commits
5675bad8
Commit
5675bad8
authored
3 years ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
fix feature import from geojson not working
parent
65b923af
No related branches found
No related tags found
2 merge requests
!295
Version 3.0.0
,
!282
REDMINE_ISSUE-12779
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/store/modules/feature_type.store.js
+2
-2
2 additions, 2 deletions
src/store/modules/feature_type.store.js
with
2 additions
and
2 deletions
src/store/modules/feature_type.store.js
+
2
−
2
View file @
5675bad8
...
...
@@ -165,7 +165,7 @@ const feature_type = {
});
},
async
SEND_FEATURES_FROM_GEOJSON
({
state
,
dispatch
,
root
Getters
},
payload
)
{
async
SEND_FEATURES_FROM_GEOJSON
({
state
,
dispatch
,
root
State
},
payload
)
{
let
{
feature_type_slug
,
geojson
}
=
payload
;
//* check if geojson then build a file
if
(
!
geojson
&&
!
state
.
fileToImport
&&
state
.
fileToImport
.
size
===
0
)
return
;
...
...
@@ -173,7 +173,7 @@ const feature_type = {
let
fileToImport
;
const
{
name
,
type
}
=
geojson
||
state
.
fileToImport
;
if
(
!
root
Getters
[
'
projects
/
project
'
]
.
moderation
)
{
if
(
root
State
.
projects
.
project
.
moderation
)
{
if
(
state
.
fileToImport
&&
state
.
fileToImport
.
size
>
0
)
{
//* if data in a binary file, read it as text
const
textFile
=
await
state
.
fileToImport
.
text
();
geojson
=
JSON
.
parse
(
textFile
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment