scroll-export-button macro renders an error when viewing page templates

Description

When viewing or editing a page template in Space Tools -> Content Tools -> Templates an error is rendered because the macro implementation cannot determine the actual type of the 'page' it is placed on.
This causes an error message to be rendered instead of the macro's button output, yet the template remains fully functional for creating new pages of it.

Steps to reproduce:

  1. Create a new page template in Space Tools -> Content Tools -> Templates

  2. Insert a scroll-export-button macro from the Scroll Exporter Extensions app

  3. Open the macro editor and verify that the preview renders an error

  4. Save the template and view it by clicking its name in the list

  5. Verify it renders an error

Environment

None

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

None

Participants

None

QA Status

None

Deployment

Server

Documentation Status

None

UI Concept

None

External Votes

None

Components

Priority

Major
Configure