File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
ui/src/views/tool/toolStore Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -766,7 +766,7 @@ def get_appstore_tools(self):
766766 os .unlink (temp_zip_path )
767767 except requests .RequestException as e :
768768 maxkb_logger .error (f"fetch appstore tools error: { e } " )
769- return []
769+ return { 'apps' : [], 'additionalProperties' : { 'tags' : []}}
770770
771771 class AddStoreTool (serializers .Serializer ):
772772 user_id = serializers .UUIDField (required = True , label = _ ("User ID" ))
Original file line number Diff line number Diff line change @@ -175,6 +175,11 @@ async function getStoreToolList() {
175175 const tags = res .data .additionalProperties .tags
176176 const storeTools = res .data .apps
177177
178+ if (storeTools .length === 0 ) {
179+ filterList .value = []
180+ return
181+ }
182+
178183 categories .value = tags .map ((tag : any ) => ({
179184 id: tag .key ,
180185 title: tag .name , // 国际化
You can’t perform that action at this time.
0 commit comments