fix: codegen modal breaking, downgrade back to 2.0

This commit is contained in:
Andrew Bastin
2023-08-22 00:49:13 +05:30
parent b32b0f9bcb
commit cb8678f07f
3 changed files with 128 additions and 30 deletions

View File

@@ -63,7 +63,7 @@
"graphql": "^16.8.0",
"graphql-language-service-interface": "^2.9.1",
"graphql-tag": "^2.12.6",
"httpsnippet": "^3.0.1",
"httpsnippet": "^2.0.0",
"insomnia-importers": "^3.6.0",
"io-ts": "^2.2.20",
"js-yaml": "^4.1.0",

View File

@@ -20,7 +20,7 @@
<span class="select-wrapper">
<HoppButtonSecondary
:label="
CodegenDefinitions.find((x) => x.name === codegenType).caption
CodegenDefinitions.find((x) => x.name === codegenType)!.caption
"
outline
class="flex-1 pr-8"
@@ -57,12 +57,7 @@
"
/>
<HoppSmartPlaceholder
v-if="
!(
filteredCodegenDefinitions.length !== 0 ||
CodegenDefinitions.length === 0
)
"
v-if="filteredCodegenDefinitions.length === 0"
:text="`${t('state.nothing_found')}${searchQuery}`"
>
<template #icon>