Skip to content

Commit fe3436e

Browse files
committed
fix reference bug
1 parent 0c3b8b7 commit fe3436e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extensions/vscode/webviews/homeView/src/components/views/PythonPackages.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
Scan
1717
</vscode-button>
1818
</template>
19-
<template v-if="!home.python.active.isInProject">
19+
<template v-else-if="!home.python.active.isInProject">
2020
<p>
2121
This project is not configured to use Python. To configure Python, add
2222
a [python] section to your configuration file.
2323
</p>
2424
</template>
25-
<template v-if="home.python.active.isEmptyRequirements">
25+
<template v-else-if="home.python.active.isEmptyRequirements">
2626
<p>
2727
This project currently has no Python package requirements. If this is
2828
not accurate, click Scan to update based on the files in your project

extensions/vscode/webviews/homeView/src/stores/home.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export const useHomeStore = defineStore("home", () => {
263263
);
264264
}),
265265
isInProject: computed(() => {
266-
return pythonProject;
266+
return pythonProject.value;
267267
}),
268268
},
269269
};

0 commit comments

Comments
 (0)