Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into state_updates_type_co…
Browse files Browse the repository at this point in the history
…nversion
  • Loading branch information
nulinspiratie committed Sep 6, 2024
2 parents aa9c0cc + 426d3a1 commit 3eb6e9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ const StateUpdateComponent: React.FC<StateUpdateComponentProps> = (props) => {
className={styles.editIconWrapper}
onClick={() => {
setEditMode(true);
setCustomValue(stateUpdateObject.val ?? stateUpdateObject.new);
setCustomValue(JSON.stringify(stateUpdateObject.val ?? stateUpdateObject.new));
}}
>
{!editMode && <EditIcon />}
</div>
{editMode && (
<InputField
className={styles.newValueOfState}
value={JSON.stringify(customValue)}
value={customValue as string | number | readonly string[] | undefined}
onChange={(val) => {
setCustomValue(val);
}}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/Snapshots/api/SnapshotsApi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class SnapshotsApi extends Api {
return this._fetch(this.api(UPDATE_SNAPSHOT(snapshotId)), API_METHODS.POST, {
headers: BASIC_HEADERS,
body: JSON.stringify({ data_path, value }),
queryParams: { data_path, value },
// queryParams: { data_path, value },
});
}

Expand Down

0 comments on commit 3eb6e9a

Please sign in to comment.