Skip to content

Commit

Permalink
Merge pull request #833 from factly/studio/826/add-spaceID
Browse files Browse the repository at this point in the history
add SpaceID to general in website
  • Loading branch information
vsumit89 authored Jan 17, 2023
2 parents 8252751 + c302da6 commit d9d26d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions studio/src/pages/website/components/WebsiteEditForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const WebsiteEditForm = ({ onCreate, data = {} }) => {
}
const [form] = Form.useForm();
const orgs = useSelector((state) => state.spaces.orgs);

const currentSpaceID = useSelector((state) => state.spaces.selected);
const onReset = () => {
form.resetFields();
};
Expand All @@ -28,7 +28,7 @@ const WebsiteEditForm = ({ onCreate, data = {} }) => {
<Form
layout="vertical"
form={form}
initialValues={data}
initialValues={{ ...data, space_id: currentSpaceID }}
name="create-space"
onFinish={(values) => {
if (values.meta_fields) {
Expand Down Expand Up @@ -77,6 +77,9 @@ const WebsiteEditForm = ({ onCreate, data = {} }) => {
))}
</Select>
</Form.Item>
<Form.Item rules={[{ required: true }]} name="space_id" label="SpaceID">
<Input disabled />
</Form.Item>
<Form.Item
name="name"
label="Name"
Expand Down

0 comments on commit d9d26d6

Please sign in to comment.