We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdda443 commit 8d2e4b6Copy full SHA for 8d2e4b6
web/src/pages/app/functions/mods/FunctionPanel/index.tsx
@@ -29,7 +29,7 @@ export default function FunctionList() {
29
useFunctionListQuery({
30
onSuccess: (data) => {
31
store.setAllFunctionList(data.data);
32
- if (!store.currentFunction?.id) {
+ if (!store.currentFunction?.id && data.data.length > 0) {
33
store.setCurrentFunction(data.data[0]);
34
}
35
},
0 commit comments