scheduleSave(type, data) {
        if (data && data.status && data.status === 'draft') {
            this.saveTask.perform(type, data);
        }
    }
Method to trigger the save task
@param {string} type - post or page
@param {object} data - serialized post data