parent
3e50fe3f31
commit
8076c3b499
1 changed files with 4 additions and 1 deletions
|
@ -90,7 +90,10 @@ export const SaveModal = (props: Props) => {
|
|||
savedObjectsTagging={savedObjectsTagging}
|
||||
savedObjectsClient={savedObjectsClient}
|
||||
initialTags={tagsIds}
|
||||
onSave={(saveProps) => onSave(saveProps, { saveToLibrary: false })}
|
||||
onSave={(saveProps) => {
|
||||
const saveToLibrary = saveProps.dashboardId === null;
|
||||
onSave(saveProps, { saveToLibrary });
|
||||
}}
|
||||
onClose={onClose}
|
||||
documentInfo={{
|
||||
id: lastKnownDoc.savedObjectId,
|
||||
|
|
Loading…
Reference in a new issue