Skip to content

Commit 91a07ca

Browse files
committed
fix(ol-interaction-modify): correctly check for source/features
closes #370
1 parent b8d284f commit 91a07ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/components/interaction/OlInteractionModify.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const {
5959
} = toRefs(props);
6060
6161
function createModify() {
62-
if (!source?.value || !features.value) {
62+
if (!(source?.value || !features.value)) {
6363
console.error(
6464
`[Vue3-OpenLayers Error] OlInteractionModify: Modify interactions needs either a either a source or features to work.
6565
Please provide either the props 'source' or 'feature' or use the component with an '<OlSourceVector>' component.`,

0 commit comments

Comments
 (0)