@medplum/react 1.0.1 → 1.0.2

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.
@@ -5,7 +5,7 @@ export interface ReferenceRangeEditorProps {
5
5
  definition: ObservationDefinition;
6
6
  onSubmit: (result: ObservationDefinition) => void;
7
7
  }
8
- declare type IntervalGroup = {
8
+ type IntervalGroup = {
9
9
  id: string;
10
10
  filters: Record<typeof intervalFilters[number], any>;
11
11
  intervals: ObservationDefinitionQualifiedInterval[];
package/dist/cjs/index.js CHANGED
@@ -557,6 +557,7 @@
557
557
  React.createElement(core$1.Group, { position: "center", p: "xl", style: { height: 70 } },
558
558
  React.createElement(GoogleButton, { googleClientId: googleClientId, handleGoogleCredential: (response) => __awaiter(this, void 0, void 0, function* () {
559
559
  try {
560
+ yield medplum.startPkce();
560
561
  props.handleAuthResponse(yield medplum.startGoogleLogin({
561
562
  googleClientId: response.clientId,
562
563
  googleCredential: response.credential,
@@ -2516,7 +2517,7 @@
2516
2517
  disallowClose: true,
2517
2518
  });
2518
2519
  }
2519
- if (!resource || !history) {
2520
+ if (!resource) {
2520
2521
  return (React.createElement(core$1.Center, { style: { width: '100%', height: '100%' } },
2521
2522
  React.createElement(core$1.Loader, null)));
2522
2523
  }
@@ -5004,6 +5005,7 @@
5004
5005
  const currentGroupIndex = groups.findIndex((g) => g.id === groupId);
5005
5006
  if (currentGroupIndex != -1) {
5006
5007
  const currentGroup = Object.assign({}, groups[currentGroupIndex]);
5008
+ addedInterval = Object.assign(Object.assign({}, addedInterval), currentGroup.filters);
5007
5009
  currentGroup.intervals = [...currentGroup.intervals, addedInterval];
5008
5010
  groups[currentGroupIndex] = currentGroup;
5009
5011
  }