@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.
@@ -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.getSchema(state.typename)?.schema;
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.getSchema(state.typename)?.schema;
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);