@dxos/react-ui-table 0.7.5-main.499c70c → 0.7.5-main.9d26e3a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +6 -2
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +6 -2
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +6 -2
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Table/CreateRefPanel.d.ts.map +1 -1
- package/package.json +29 -29
- package/src/components/Table/CreateRefPanel.tsx +3 -4
- package/src/playwright/smoke.spec.ts +16 -1
|
@@ -164,7 +164,9 @@ var CreateRefPanel = ({ model, modals, __gridScope }) => {
|
|
|
164
164
|
if (!space || state?.type !== "createRefPanel") {
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
const schema2 = space.db.schemaRegistry.
|
|
167
|
+
const [schema2] = space.db.schemaRegistry.query({
|
|
168
|
+
typename: state.typename
|
|
169
|
+
}).runSync();
|
|
168
170
|
if (schema2) {
|
|
169
171
|
const omit = S.omit("id");
|
|
170
172
|
return omit(schema2);
|
|
@@ -177,7 +179,9 @@ var CreateRefPanel = ({ model, modals, __gridScope }) => {
|
|
|
177
179
|
if (!model || !space || state?.type !== "createRefPanel") {
|
|
178
180
|
return;
|
|
179
181
|
}
|
|
180
|
-
const schema2 = space.db.schemaRegistry.
|
|
182
|
+
const [schema2] = space.db.schemaRegistry.query({
|
|
183
|
+
typename: state.typename
|
|
184
|
+
}).runSync();
|
|
181
185
|
if (schema2) {
|
|
182
186
|
const obj = space.db.add(create(schema2, values));
|
|
183
187
|
state.onCreate?.(obj);
|