sacred-roseS
Refine2y ago
180 replies
sacred-rose

Bug or misconfiguration

...
      <Drawer {...cdrawerProps}>
        <Create saveButtonProps={csaveButtonProps} goBack={false}>
          <Form {...cformProps} layout="vertical">
            <Form.Item
              label={"Title"}
              name={["title"]}
              rules={[
                {
                  required: true,
                },
              ]}
            >
              <Input />
            </Form.Item>
          </Form>
        </Create>
      </Drawer>
      <Drawer {...edrawerProps}>
        <Edit
          saveButtonProps={esaveButtonProps}
          goBack={false}
          recordItemId={id}
        >
          <Form {...eformProps} layout="vertical">
            <Form.Item
              label={"Title"}
              name={["title"]}
              rules={[
                {
                  required: true,
                },
              ]}
            >
              <Input />
            </Form.Item>
          </Form>
        </Edit>
      </Drawer>


When i click the edit button, it opens the edit drawer, the edit drawer has a delete button, when i click on it, it deletes fine, and i get the notification of success, however, the drawer doesn't go away instead the "save" button stays spinning and then i get a 400 error message. Checking the console, it looks like the drawer is not getting destroyed, instead is trying to refresh the information because it's attempting to call the api to get that record id information again.

Any ideas?
Was this page helpful?