Skip to content

Commit ab8ad2b

Browse files
authored
fix(playground): fix version check for yaml model generation (#8944)
1 parent 5fd13d1 commit ab8ad2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-playground/src/pages/Schema/SchemaPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ export class SchemaPage extends Component<SchemaPageProps, any> {
187187

188188
const { playgroundContext } = this.context;
189189

190-
const [, minor] = playgroundContext.coreServerVersion
190+
const [major, minor] = playgroundContext.coreServerVersion
191191
? playgroundContext.coreServerVersion.split('.')
192192
: [];
193-
const isYamlFormatSupported: boolean = !minor || Number(minor) >= 31;
193+
const isYamlFormatSupported: boolean = (Number(major) > 0) || (!minor || Number(minor) >= 31);
194194

195195
const renderTreeNodes = (data) =>
196196
data.map((item) => {

0 commit comments

Comments
 (0)