diff --git a/editor/src/components/canvas/plugins/style-plugins.ts b/editor/src/components/canvas/plugins/style-plugins.ts index 87e771bb8118..651671aa2f05 100644 --- a/editor/src/components/canvas/plugins/style-plugins.ts +++ b/editor/src/components/canvas/plugins/style-plugins.ts @@ -190,7 +190,12 @@ function getPropertiesToZero( } export function patchRemovedProperties(editorState: EditorState): EditorState { - const styleInfoReader = getActivePlugin(editorState).styleInfoFactory({ + const activePlugin = getActivePlugin(editorState) + if (activePlugin.name === InlineStylePlugin.name) { + return editorState + } + + const styleInfoReader = activePlugin.styleInfoFactory({ projectContents: editorState.projectContents, })