Skip to content

Commit

Permalink
fix(ol-interaction-modify): fix if-clause
Browse files Browse the repository at this point in the history
closes #371
  • Loading branch information
d-koppenhagen committed Sep 4, 2024
1 parent 9701c57 commit 58b7006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/interaction/OlInteractionModify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ const {
} = toRefs(props);
function createModify() {
if (!(source?.value || !features.value)) {
if (!(source?.value || features.value)) {
console.error(
`[Vue3-OpenLayers Error] OlInteractionModify: Modify interactions needs either a either a source or features to work.
`[Vue3-OpenLayers Error] OlInteractionModify: Modify interactions needs either a source or features to work.
Please provide either the props 'source' or 'feature' or use the component with an '<OlSourceVector>' component.`,
);
}
Expand Down

0 comments on commit 58b7006

Please sign in to comment.