Skip to content

Commit

Permalink
fix(ol-interaction-modify): correctly check for source/features
Browse files Browse the repository at this point in the history
closes #370
  • Loading branch information
d-koppenhagen committed Aug 7, 2024
1 parent b8d284f commit 91a07ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/interaction/OlInteractionModify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ 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.
Please provide either the props 'source' or 'feature' or use the component with an '<OlSourceVector>' component.`,
Expand Down

1 comment on commit 91a07ca

@fbatschi
Copy link

@fbatschi fbatschi commented on 91a07ca Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@d-koppenhagen unfortunately this commit does not fix #370
i think what you meant to do was

if (!(source?.value || features?.value)) {

Please sign in to comment.