Skip to content

Commit

Permalink
Fix the other case of feature properties not being initially set
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Nov 21, 2024
1 parent bdfe6a4 commit 48d84db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/sketch/EditFeatureForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
// Workaround unused var warning
cfg;
// If the feature has just been created, initialize the properties shared by all schemas
props.name ||= "";
props.description ||= "";
</script>

{#if id != null}
Expand Down

0 comments on commit 48d84db

Please sign in to comment.