We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a8b6b4 commit 9fb8d5bCopy full SHA for 9fb8d5b
packages/runtime/src/enhancements/node/query-utils.ts
@@ -225,7 +225,7 @@ export class QueryUtils {
225
// model has a discriminator so it can be a polymorphic base,
226
// need to find the concrete model
227
const concreteModelName = data[modelInfo.discriminator];
228
- if (concreteModelName) {
+ if (typeof concreteModelName === 'string' && concreteModelName) {
229
return concreteModelName;
230
}
231
tests/regression/tests/issue-1698.test.ts
@@ -1,5 +1,5 @@
1
import { loadSchema } from '@zenstackhq/testtools';
2
-describe('issue 1968', () => {
+describe('issue 1698', () => {
3
it('regression', async () => {
4
const { enhance } = await loadSchema(
5
`
0 commit comments